-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |