mirror of
https://github.com/sahinakkaya/til.git
synced 2024-11-14 13:09:37 +01:00
10 lines
204 B
Markdown
10 lines
204 B
Markdown
|
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"
|
||
|
|
||
|
```
|