how to tell which branch to commit code example Example: git check if commit in master git branch --contains $COMMIT_ID