Git: Temporary Commit Cheat Sheet

Temporarily store modified, tracked files in order to change branches.

git stash

Save modified and staged changes

git stash list

list stack-order of stashed file changes

git stash pop

write working from top of stash stack

git stash drop

discard the changes from top of stash stack

Leave a Reply

Your email address will not be published. Required fields are marked *