mirror of
https://github.com/sahinakkaya/til.git
synced 2025-07-17 14:01:49 +03:00
TIL: Stashing staged changes
This commit is contained in:
9
git/stashing-staged-changes.md
Normal file
9
git/stashing-staged-changes.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
As of Git 2.35 you can stash only staged changes with `--staged` option.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ git add foo
|
||||||
|
$ git stash push --staged
|
||||||
|
$ # You can also add a message with `-m`
|
||||||
|
$ git stash push --staged -m "message"
|
||||||
|
|
||||||
|
```
|
Reference in New Issue
Block a user