I'm a bit on panic mode at the moment. This is what happened: I just got a blue screen on my PC right when I was doing a commit into a local branch.
After restarting the PC I openend SourceTree and saw that I was checked out at the master branch instead of the branch in which I was working before the crash. What's more, the branch has disappeared completely and I have no local history at all.
The good news is that it looks like all the changes that I had made are still there. I see all the files in "Staged changes", but I need to stash them before I can switch to another branch (as I don't want to commit to master yet) and I'm getting the following error:
git -c diff.mnemonicprefix=false -c core.quotepath=false stash save AfterCrash fatal: bad revision 'HEAD' fatal: bad revision 'HEAD' fatal: Needed a single revision You do not have the initial commit yet Completed with errors, see above.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events