Git Stash
Temporarily saving changes
Save to Stash
git stash # stash current changes
git stash save 'message' # stash with message
git stash -u # include untracked files
Apply Stash
git stash pop # apply and remove stash
git stash apply # apply but keep stash
git stash apply stash@{2} # apply specific stash
List Stashes
git stash list # show all stashes
git stash show # show latest stash
git stash show -p # show stash diff
Delete Stash
git stash drop # delete latest stash
git stash drop stash@{1} # delete specific stash
git stash clear # delete all stashes
Create Branch from Stash
git stash branch branch-name # create branch from stash