To temporarily store uncommitted changes and clean the working directory, use git ______.
- stash
- commit
- push
- branch
The correct option is stash. The git stash command is used to save changes that have not been committed yet, allowing you to switch to a different branch or apply the changes later. It is useful for temporarily shelving changes.
Loading...
Related Quiz
- A developer wants to automate the deployment of their application to a server after each commit to the master branch on GitLab. Which Git feature should they utilize?
- What is the main purpose of using Git Submodules?
- How does Git support distributed teams in handling merge conflicts?
- How does Git ensure data integrity in large repositories?
- What is a Git hook?