The git _______ command can be used to temporarily store uncommitted changes and clear the working directory.
- stash
- save
- store
- backup
The correct option is stash. The git stash command is used to save changes that are not ready to be committed yet. It allows you to temporarily store your modifications and revert the working directory to match the last commit. This is useful when you need to switch branches or apply changes later.
Loading...
Related Quiz
- After reviewing a repository's history, a team leader finds an unauthorized access. What Git practice could have prevented this?
-
The command git _______
is used to clone a remote repository to your local machine. - When a merge conflict occurs, what does Git use to mark the conflicted area in the files?
- To remove a file from the staging area without deleting the file itself, use the command git _______.
- What is a common challenge when scaling Git for enterprise use?