1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 14:24:54 +02:00
tldr/common/git-stash.md
2014-01-29 22:58:24 +01:00

23 lines
396 B
Markdown

# 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}}`