git check if you have a commit on a branch code example Example: git check if commit in master git branch --contains $COMMIT_ID