I was engaged in my project, and at some point I discovered that one thing stopped working. I needed to see the status of my code when it worked correctly, so I decided to use git checkout (because I wanted to check something). And so I did
git checkout SHA
a couple of times, returning to the point from which I cannot go to HEAD, the output is as follows:
git checkout SHA-HEAD error: Your local changes to the following files would be overwritten by checkout: [list of files] Please, commit your changes or stash them before you can switch branches. Aborting
I am pretty sure I haven't changed anything. Team
git checkout master
gives the same result.
Is there any way to return to HEAD?
What is the safest way to leap history?
git git-checkout
asdfgh
source share