This is an old revision of the document!


git stash

  • create a stash
    git stash save ["name of stash"]
  • view list of stashes
    git stash list
  • view diff of stash
    git stash show --unified stash@{0}
  • see which commit the stash was based on (note if you don't give a stash a specific custom name, it tells you this in the name by default)
    git show-branch master stash@{0}
  • apply stash to current working directory, removing the stash if successful
    git stash pop [optional stash reference such as stash@{0}]
  • delete a stash
    git stash drop [optional stash reference]
  • docs/git/stash.1336174913.txt.gz
  • Last modified: 2012/05/04 17:41
  • by billh