Git - Stash

To evacuate changes in your working tree before you switch branches you can use git stash. This prevents you from commiting before you're ready to do so. It' a way to temporarily move your working tree out of the way.

# save away working tree and index if they differ from HEAD:
git stash
# restore what you stashed away, integrate it in your working tree and delete the stash:
git stash pop
# apply stash, don't delete it afterwards
git stash apply
# delete stash
git stash drop
# show what's in the stash
git stash show
 
# or just list 
git stash list
howto/git/git_stash.txt · Last modified: 2014-12 by tb
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready