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
Written by Kristian Lewis Jones
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#