Re:Magit, the magical Git interface (2017)
by gpderetta on Saturday October 23, 2021 @06:00AM
(#28967068)
You have to do it in two steps with --keep-index.
Or use magit that has a stash index option.
Re:Magit, the magical Git interface (2017)
by jrootabega on Sunday October 24, 2021 @08:45AM
(#28977380)
I used this feature enough that I forgot/never even knew that it wasn't built in to git-stash.
Re:Magit, the magical Git interface (2017)
by matheusmoreira on Saturday October 23, 2021 @05:19AM
(#28966886)
> there's no way to stash just staged things like making a commit
That would be a nice feature!
Trying to stash some of the changes is pretty annoying, yes. New files don't want to cooperate with stashing, and there's no way to stash just staged things like making a commit; you have to use -p.