mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 22:46:02 +02:00
git-stash command
This commit is contained in:
parent
8e7a0eff79
commit
891310fb94
1 changed files with 23 additions and 0 deletions
23
osx/git-stash.md
Normal file
23
osx/git-stash.md
Normal file
|
@ -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}}`
|
Loading…
Add table
Reference in a new issue