XK0-006 · Question #12
A Linux administrator is making changes to local files that are part of a Git repository. The administrator needs to retrieve changes from the remote Git repository. Which of the following commands…
The correct answer is A. git stash. The git stash command temporarily saves local modifications without committing them, allowing the administrator to safely run git pull or git fetch later and then reapply the saved changes.
Question
A Linux administrator is making changes to local files that are part of a Git repository. The administrator needs to retrieve changes from the remote Git repository. Which of the following commands should the administrator use to save the local modifications for later review?
Options
- Agit stash
- Bgit pull
- Cgit merge
- Dgit fetch
How the community answered
(49 responses)- A94% (46)
- C2% (1)
- D4% (2)
Explanation
The git stash command temporarily saves local modifications without committing them, allowing the administrator to safely run git pull or git fetch later and then reapply the saved changes.
Topics
Community Discussion
No community discussion yet for this question.