I checked out a previous commit. I made many changes for hours and committed them. Then I switched to a different branch. When I switched back to previous commit I was working on, I noticed all my changed are gone. I don't see them in the history either.
In other words, I did the following:
git checkout bfea631
(a previous commit)- Changed, added, and committed many files/changes.
git checkout master
- Made a commit.
git checkout bfea631
(a previous commit)- Noticed my changes I made in step 2 are gone.
Any help would be appreciated as I spend multiple hours making changes in step 2 above.