Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
8 lines
655 B
Markdown
8 lines
655 B
Markdown
# Git Stash Basics
|
|
|
|
Git stash temporarily saves uncommitted changes so the working directory can be cleaned without committing incomplete work. The command `git stash` saves the current changes and reverts the working directory to match the last commit, while `git stash pop` restores them later. This is useful when a developer needs to quickly switch branches or pull updates without losing in-progress work.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Git stash](https://www.atlassian.com/git/tutorials/saving-changes/git-stash)
|
|
- [@article@A practical guide to using the git stash command](https://opensource.com/article/21/4/git-stash) |