A developer needs to temporarily switch context to another task without committing their current, incomplete work. What Git feature is most appropriate for this scenario?
- Git Reset
- Git Stash
- Git Checkout
- Git Revert
The suitable option is Git Stash. It allows the developer to save changes in a stack, switch to another task, and then come back to the original changes without committing them.
Loading...
Related Quiz
- How does Git support the automation of deployment in DevOps practices?
- Changing the history of public branches is generally discouraged because it can lead to ________ for other collaborators.
- What are the implications of using git rebase in a collaborative environment?
- In the Gitflow workflow, the ________ branch contains the official release history.
- The command to synchronize your Git Submodules with the main repository is git submodule __________.