Git · Middle · Question 45 of 75

How do you see which branches contain a given commit?

Explanation

Useful to check whether a fix reached a release branch. Add -r for remote branches, or use git tag --contains for releases.

Further reading

Problem with a question

Git · Middle · question 45

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz