exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 133 discussion

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

A Linux administrator copied a Git repository locally, created a feature branch, and committed some changes to the feature branch. Which of the following Git actions should the Linux administrator use to publish the changes to the main branch of the remote repository?

  • A. rebase
  • B. tag
  • C. commit
  • D. push
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Qubert2
9 months, 3 weeks ago
Selected Answer: D
There are several steps to publish local, committed changes on a local branch to the remote main branch. The final command is "push", so D is correct, but it's a bad question.
upvoted 1 times
...
HMAC
2 years, 3 months ago
Since "committed some changes to the feature branch" was present in the question. Push is the next step.
upvoted 1 times
...
linux_admin
2 years, 6 months ago
Selected Answer: D
In Git, the "push" command is used to publish local changes to a remote repository. When the administrator makes changes to the feature branch, the changes are only available in the local repository. If the changes are ready to be merged into the main branch of the remote repository, the administrator can use the "push" command to upload the changes to the remote repository. This will make the changes available to others who are also working on the same repository. Before pushing the changes to the remote repository, the administrator should first ensure that the changes are committed to the local repository using the "commit" command. The administrator should also ensure that the local repository is up-to-date with the remote repository by using the "pull" command to download any changes made by others before attempting to push the changes. Once the changes are committed and the local repository is up-to-date, the administrator can use the "push" command to upload the changes to the remote repository.
upvoted 3 times
...
KnifeClown1
2 years, 6 months ago
Selected Answer: D
D. push
upvoted 1 times
...
ethan_me
2 years, 9 months ago
Selected Answer: D
Commit it for local changes. Push is for remote changes.
upvoted 4 times
Veteran903
2 years, 8 months ago
The amount of wrong answers is staggering, Im stating to doubt if these are real examn questions
upvoted 3 times
Nvoid
2 years, 8 months ago
in my experience passing 4 other exams using ET, if the questions are bad or have errors from what the original should/could be, it probably won't be on the test. The solid ones that are no question usually on legit.
upvoted 3 times
Veteran903
2 years, 8 months ago
Good to know, make sense, thanks
upvoted 1 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 ...