ragnarokkrr
6/10/2016 - 6:05 PM

From http://dev.housetrip.com/2013/05/13/git-stashing/

#http://stackoverflow.com/questions/1105253/how-would-i-extract-a-single-file-or-changes-to-a-file-from-a-git-stash

$ git checkout stash@{0} -- <filename>
# http://stackoverflow.com/questions/10725729/git-see-whats-in-a-stash-without-applying-stash

$ git stash show -p stash@{1}
$ git checkout original-branch

$ git checkout -b my-new-beautiful-branch

$ git stash pop stash@{0}
  
  
  
#######
  
  
$ git stash create my-new-beautiful-branch stash@{0}
$ git stash drop stash@{2}

$ git stash clear
$ git stash pop

$ git stash pop stash@{2}
$ git stash show

$ git stash show stash@{2}