Skip to content

Commit

Permalink
git-stash command
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain Prieto authored and Romain Prieto committed Dec 9, 2013
1 parent 8e7a0ef commit 891310f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions osx/git-stash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# git stash

> Stash local Git changes in a temporary area
- stash current changes (except new files)

`git stash {{optional_stash_name}}`

- include new files in the stash (leaves the index completely clean)

`git stash -u {{optional_stash_name}}`

- list all stashes

`git stash list`

- re-apply the latest stash

`git stash pop`

- re-apply a stash by name

`git stash apply {{stash_name}}`

0 comments on commit 891310f

Please sign in to comment.