I would like to stash only the changes in the current folder and its subfolders.
How can I achieve that?
I have tried the obvious approach - git stash .
but it doesn't seem to work.
I know I can create temporary commits and delete them afterward, but I want to know if git stash
supports stashing specific folders.
git stash
command – stdcall May 8 '13 at 6:46git stash
puts aside uncommitted changes in the working tree. – Noufal Ibrahim May 8 '13 at 8:23git stash push -- path/to/folder
should probably be used - works for me. Please, accept the below answer by @gorpacrate. – Danijel Oct 1 '18 at 9:57