When stashing changes, what happens to the staged and unstaged modifications in Git?
- Staged changes are preserved, unstaged changes are discarded
- Both staged and unstaged changes are preserved
- Staged changes are discarded, unstaged changes are preserved
- Both staged and unstaged changes are discarded
When you stash changes, Git saves both staged and unstaged changes. This allows you to switch branches without committing changes, and later apply the stash to continue working on the changes.
Loading...
Related Quiz
- How do you check the current version of Git installed on your system?
- In a code review, what should be the primary focus when evaluating a pull request?
- To handle large files during a Git transition, the use of git _______ can be a solution.
- To save changes in Git, first stage them using git _______, then commit using git commit.
- How do you resolve a merge conflict in Git?