Last Updated: February 25, 2016
·
363
· klj613

Find branches/tags which contains a specific commit

To find branches/tags which contains a specific commit:

git branch --contains <sha>
git tag --contains <sha>

To find a commit which has '#1234' in the message:

git log --all --grep=#1234