Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 698 Bytes

stash.md

File metadata and controls

32 lines (25 loc) · 698 Bytes

Stash

List

# List the stash entries that you currently have.
git stash list

Save

# Save your local modifications to a new stash entry 
# and roll them back to HEAD (in the working tree and in the index).
git stash save  # DEPRECATED

# Save your local modifications to a new stash entry 
# and roll them back to HEAD (in the working tree and in the index).
git stash push

Remove

# Remove a single stashed state from the stash list and apply it on top of the 
# current working tree state, i.e., do the inverse operation of git stash save.
git stash pop

# Like pop, but do not remove the state from the stash list.
git stash apply

# ...
git stash drop