Stashing in Git

The Below are the basic commands along with there description
git stash
git stash save <optional-name> 
save your local modifications to a new stash (so you can for example
"git svn rebase" or "git pull")

git stash apply

restore the changes recorded in the stash on top of the current working tree

git stash pop

restore the changes from the most recent stash, and remove it from the stack
of stashed changes

git stash list

list all current stashes

git stash show <stash-name> -p
show the contents of a stash - accepts all diff args

git stash drop [<stash-name>]
delete the stash

git stash clear

delete all current stashes


Popular posts from this blog

Inserting and Moving elements inside Ruby Array

Difference between Validations, Callbacks and Observers