I want to stash a single file. Since git stash
does not allow a filename as a parameter, I have to use git stash -p
and select the file among the rest of changes.
This works fine if changes not staged for commit do not include many files, or if the file I want to stash is one of the first ones.
However, if there are many files and the one I want to stash is to the end of the list, I have to go through all the other ones until I get to the desired one. And this is a bit tedious.
So I was wondering: is there a way to define the order in which the files not staged for commit appear upon doing git stash -p
?