TIL: Stashing staged changes

This commit is contained in:
Şahin Akkaya 2022-12-17 15:01:12 +03:00
parent 850876aa17
commit b0115bc2ba

View 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"
```