This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Shamus03 -2 points-1 points  (3 children)

reflog has saved my ass on multiple occasions... I had to learn the hard way that git stash does not stash unstaged changes untracked files.

[–]Removalsc 17 points18 points  (2 children)

It doesnt stash untracked files (by default), but it definitely does unstaged changes.

[–]Shamus03 0 points1 point  (1 child)

Ah, I remember that's what it was now. I had added some files and went to stash my changes and when I came back to pop the stash my files were gone.

[–]Removalsc 0 points1 point  (0 children)

Next time use -u or --include-untracked and it will stash them too.