ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 231 - XK0-005 discussion

Report
Export

A systems administrator checked out the code from the repository, created a new branch, made changes to the code, and then updated the main branch. The systems administrator wants to ensure that the Terraform state files do not appear in the main branch. Which of following should the administrator use to meet this requirement?

A.
clone
Answers
A.
clone
B.
gitxgnore
Answers
B.
gitxgnore
C.
get
Answers
C.
get
D.
.ssh
Answers
D.
.ssh
Suggested answer: B

Explanation:

To prevent certain files from being tracked by Git, the administrator can use a.gitignorefile (B) in the repository. The.gitignorefile can specify patterns of files or directories that Git should ignore. This way, the Terraform state files will not appear in the main branch or any other branch. The other commands are not related to this requirement.Reference:

[CompTIA Linux+ Study Guide], Chapter 10: Working with Git, Section: Ignoring Files with .gitignore

[How to Use .gitignore File]

asked 02/10/2024
Aline Oliveira
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first