exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 135 discussion

Actual exam question from CompTIA's XK0-005
Question #: 135
Topic #: 1
[All XK0-005 Questions]

A Linux administrator is adding a new configuration file to a Git repository. Which of the following describes the correct order of Git commands to accomplish the task successfully?

  • A. pull -> push -> add -> checkout
  • B. pull -> add -> commit -> push
  • C. checkout -> push -> add -> pull
  • D. pull -> add -> push -> commit
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Alizadeh
8 months, 3 weeks ago
Selected Answer: B
The correct answer is B. pull -> add -> commit -> push.
upvoted 2 times
...
nixonbii
1 year, 2 months ago
This question really needs to clarify if the file is being added to a REMOTE or LOCAL repository. It matters.
upvoted 2 times
...
linux_admin
1 year, 2 months ago
Selected Answer: B
The correct order of Git commands to add a new configuration file to a Git repository is: pull to get the latest changes from the remote repository. add to add the new configuration file to the staging area. commit to commit the changes to the local repository. push to push the changes to the remote repository. Therefore, the correct answer is: B. pull -> add -> commit -> push
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago