Something mysterious happened and the local git branch I was working on disappeared. I have no idea where it went.
Is there any way to list all commits that have ever been made across all branches, even ones that aren't around any more?
Something mysterious happened and the local git branch I was working on disappeared. I have no idea where it went.
Is there any way to list all commits that have ever been made across all branches, even ones that aren't around any more?
git reflog
doesn't show any commits since I branched
That means you might not have committed sonce you have branched.
Maybe your files were added to the index but were since removed from disk?
As seen in this guide (or in "Recover from git reset --hard?"), check the result of:
git fsck −−lost-found
(more complete command: git fsck --full --unreachable --no-reflog
)