mirror of
https://github.com/jbranchaud/til
synced 2026-01-08 09:38:04 +00:00
Add Staging Stashes Interactively as a git til.
This commit is contained in:
14
git/staging-stashes-interactively.md
Normal file
14
git/staging-stashes-interactively.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Staging Stashes Interactively
|
||||
|
||||
The `-p` flag can be used with `git stash`, just as it is used with `git add`,
|
||||
for interactively staging a stash.
|
||||
|
||||
So, if you have changes in your working tree that you want to stash mixed
|
||||
with ones that you want to keep working with, then you can simply do:
|
||||
|
||||
```
|
||||
git stash -p
|
||||
```
|
||||
|
||||
Read more on [interactive
|
||||
staging](https://git-scm.com/book/en/v2/Git-Tools-Interactive-Staging).
|
||||
Reference in New Issue
Block a user