Answers for "how to check commits on branch git"

20

how to see all commits in git

$ git log --pretty=format:"%h - %an, %ar : %s"
ca82a6d - Scott Chacon, 6 years ago : Change version number
085bb3b - Scott Chacon, 6 years ago : Remove unnecessary test
a11bef0 - Scott Chacon, 6 years ago : Initial commit
Posted by: Guest on July-31-2020
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

Code answers related to "TypeScript"

Browse Popular Code Answers by Language