ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 272 - XK0-005 discussion

Report
Export

The development team created a new branch with code changes that a Linux administrator needs to pull from the remote repository. When the administrator looks for the branch in Git, the branch in question is not visible. Which of the following commands should the Linux administrator run to refresh the branch information?

A.
git fetch
Answers
A.
git fetch
B.
git checkout
Answers
B.
git checkout
C.
git clone
Answers
C.
git clone
D.
git branch
Answers
D.
git branch
Suggested answer: A

Explanation:

The git fetch command downloads commits, files, and refs from a remote repository into the local one. It also updates the remote-tracking branches, which are references to the state of the remote branches.By running git fetch, the administrator can see the new branch created by the development team and then use git checkout to switch to it12.

asked 02/10/2024
George Sanchez
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first