User Tools

Site Tools


git_stash

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
git_stash [2019/02/20 17:05]
rpjday [git stash pop/apply]
git_stash [2019/02/26 19:10]
rpjday
Line 19: Line 19:
 </​code>​ </​code>​
  
-===== git stash push =====+===== Basic stash operations ===== 
 + 
 +==== git stash push ====
  
 Save both the unstaged and staged content in a new stash: Save both the unstaged and staged content in a new stash:
Line 42: Line 44:
   * ''​%%--%%all'':​ Stash //all// untracked files, including ignored ones, then clean   * ''​%%--%%all'':​ Stash //all// untracked files, including ignored ones, then clean
  
-===== git stash show =====+==== git stash show ====
  
 By default, show most recent stash: By default, show most recent stash:
Line 93: Line 95:
 </​code>​ </​code>​
  
-===== git stash pop/​apply ​=====+==== git stash pop/apply ====
  
 Pop/apply the most recent stash, or a specified stash: Pop/apply the most recent stash, or a specified stash:
Line 109: Line 111:
 </​code>​ </​code>​
  
-===== Throwing away stashes ​=====+==== Throwing away stashes ====
  
 <​code>​ <​code>​
Line 117: Line 119:
 </​code>​ </​code>​
  
-===== Working with pathspecs ​=====+==== Working with pathspecs ====
  
 ''​git stash push''​ supports pushing partial changes using a //​pathspec//:​ ''​git stash push''​ supports pushing partial changes using a //​pathspec//:​
Line 125: Line 127:
 </​code>​ </​code>​
  
-===== git stash branch ​=====+==== git stash branch ====
  
 <​code>​ <​code>​
git_stash.txt · Last modified: 2019/02/26 19:18 by rpjday