How to see refs/bisect/bad?

200 views Asked by At

Some documentation for git-bisect says, "The reference refs/bisect/bad will be left pointing at that commit." I'm not sure what a "reference" is.

How do I see what refs/bisect/bad refers to?

I checked How to use git bisect? but I don't think it explains how to see what refs/bisect/bad points to.

1

There are 1 answers

1
Michael Osofsky On

To see what refs/bisect/bad points to, I was able to use the following command:

git show-ref refs/bisect/bad

I discovered this by searching google for "refs/bisect/bad" and I came across https://github.com/github/git-msysgit/blob/master/git-bisect.sh which uses git show-ref. Then I reasoned that a "reference" could be a git concept, so I googled "how to see a git reference" and sure enough it gave me the documentation https://git-scm.com/docs/git-show-ref.

I hope this helps others searching for the same answer.