Today I Learned

hashrocket A Hashrocket project

List All Branches Containing a Commit

You can get a list of all branches that contain a certain commit with:

git branch --contains ed92a03

You can also use the -r flag to list remote branches as well

git branch -r --contains ed92a03

Bonus Round: There's also a --no-contains option to list all branches without a commit.

See More #git TILs