Answers for "how to check if a commit is in a branch"

2

how to check if a commit is in a branch

// This command gets all the branches that contain the specific commit id
git branch --contains $COMMIT_ID
Posted by: Guest on September-08-2021
0

git check if commit in master

git branch --contains $COMMIT_ID
Posted by: Guest on November-06-2020

Code answers related to "how to check if a commit is in a branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language