### Stash local changes ```bash git stash ``` ### Stash only unstaged files ```bash git stash save --keep-index ``` ### Stash local changes with a custom message ```bash git stash save "this is your custom message" ``` ### Re-apply the changes you saved in your latest stash ```bash git stash apply ``` ### Re-apply the changes you saved in a given stash number ```bash git stash apply stash@{stash_number} ``` ### Drops any stash by its number ```bash git stash drop stash@{0} ``` ### Apply stash and immediately drop it from your stack ```bash git stash pop ``` ### Release a particular stash from your list of stashes ```bash git stash pop stash@{stash_number} ``` ### List all stashes ```bash git stash list ``` ### Show the latest stash changes ```bash git stash show ``` ### See diff details of a given stash number ```bash git diff stash@{0} ```