SyntaxFix
Write A Post
Hire A Developer
Questions
Just using git reflog did not return the sha for me. Only the commit id (which is 8 chars long and a sha is way longer)
git reflog
sha
commit id
So I used git reflog --no-abbrev
git reflog --no-abbrev
And then do the same as mentioned above: git checkout -b <branch> <sha>
git checkout -b <branch> <sha>