I believe I have lost the contents of my Git Stash. Here was my workflow:
I was working on Branch A, made some changes, then did git stash. I then checked out my Master branch as I needed to fetch from origin to keep my master up to date. By mistake, I did git stash pop and git status in Master, where all the changes I made in Branch A were staged.
My critical mistake was that I did not want to include the Branch A staged changes in Master, so I checked those out. This is because I assumed that if I go back into Branch A and did git stash pop, I would be back to the latest changes.
However, I checkout out Branch A, did git stash pop, and all my changes were not there. Everything was back to the last commit.
I do understand that if I did not do git stash pop in Master, I should have got all the changes back in Branch A - so lesson learned. But as a long shot, is there any way to recover from this?
I have tried:
git stash list
But no sign of the stash with my changes. I realistically think I've lost those changes in Branch A but if there is anything I've missed I'd be grateful for any help?