Posted over 8 years ago. Visible to the public. Repeats.

Find out branches containing a commit

If you have a commit and you want to see in what branches is is included, you have to write this:

Copy
git branch -r --contains [COMMIT-SHA]

-r is for remote

Owner of this card:

Avatar
Dragos Miron
Last edit:
over 3 years ago
Tags:
branch, branches, commit, commits, contain, find, git
Posted by Dragos Miron to HouseTrip Deck
This website uses short-lived cookies to improve usability.
Accept or learn more