Git · Middle · Question 45 of 75
How do you see which branches contain a given commit?
- 1
git log --branches <hash> - ✓Correct answer:
git branch --contains <hash> - 3
git show --branch <hash>
Explanation
Useful to check whether a fix reached a release branch. Add -r for remote branches, or use git tag --contains for releases.