On Tue, May 10, 2011 at 02:13:09PM -0700, koshy Koshy wrote:
> I have done 2 commits commit a then commit b.
> Then I did a check out of commit a
> However, I forgot the name of the commit b.
> Git log does not show the last commit I did
> It only shows upto current checkout.
> How can i get back commit b,
If the commit b was the tip of the branch and you did not do any
checkouts after checking out a, then
$ git checkout ORIG_HEAD
See also git-reflog.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at