Differences

This shows you the differences between two versions of the page.

Link to this comparison view

docs:git:stash [2012/05/04 17:41] – created billhdocs:git:stash [2012/11/14 16:20] (current) billh
Line 7: Line 7:
   * apply stash to current working directory, removing the stash if successful<code>git stash pop [optional stash reference such as stash@{0}]</code>   * apply stash to current working directory, removing the stash if successful<code>git stash pop [optional stash reference such as stash@{0}]</code>
   * delete a stash<code>git stash drop [optional stash reference]</code>   * delete a stash<code>git stash drop [optional stash reference]</code>
 +
 +===== tips =====
 +  * I prefer to make branches, then just type git stash save; then, when I run git stash list it shows me WIP on <branchname> so I know what that stash was about, rather than staying on master and naming a stash
 +  * I prefer bash aliases for working with stashes
 +    * gss = git stash save
 +    * gsl = git stash list
 +    * gsp = git stash pop
 +    * gsa = git stash apply
  
  • docs/git/stash.1336174913.txt.gz
  • Last modified: 2012/05/04 17:41
  • by billh