The main difference was I was not after the dangling commit, but the commit just before for it (which would show after the dangling commit in ``git-log``).
So I use that command I borrowed from StackOverflow:
$> git fsck --full --no-reflogs | grep commit
Then, use ``git log --stat <commit-hash>`` on the identified hashes and look for the following commit that you're after.
I will 100% admit that this is in the realm of MacGyver - but I didn't want to be responsible for blowing away any of my co-workers code.
1 comment:
Post a Comment