I frequently use "git stash" and "git stash pop" to save and restore changes in my working tree. This is what I did and my previous uncommitted changes now are gone.
git stash -u
git checkout master
git pull --rebase
git checkout dev
git merge --no-ff master
10 files changed, 1000 insertions(+), 2000 deletions(-)
git stash pop
CONFLICT (content): Merge conflict in file.ext
Then I thought I could revert the merge, and I did:
git reset --hard origin/master
git reset --hard origin/master
Now I don't see any of my previous stashed uncommitted changes anywhere in file.ext
, only the merged code. How can I bring back all the changes that I originally stashed?