Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #check #commit #branch
ADD COMMENT
Topic
Name
1+4 =