Or, which branch has my commit?
# Any branch have this commit?
git branch --contains $COMMIT_ID
# Filter for branches (only this branch) if it has this commit
git branch $(git symbolic-ref --short HEAD) --contains $COMMIT_ID
# Is this commit in my history?
git merge-base --is-ancestor $COMMIT_ID HEAD