git stash single file
Snippet
Instead of being asleep at 13:20 on 31 May 2023, kitt created this:
If you want to stash a single file, and not the whole change set. use --
See also View Git Stash Contents Without Applying to Codebase
Of note, this will stash staged changes, too, even if you dno't specify them in the --
$ git stash -- filename.ext
Add new comment