Today at work, one of my colleagues noticed that doing a git stash while providing the file path removes the untracked files.
git stash -- src/
This command removes the untracked files and does not recover them after stash pop. However,
git stash
this does not.
I looks like a bug to me. Could you someone please explain if this is the correct behavior ? This works as expected when I try git stash -u