How to know what branches contains this branch?

Shu Chen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 4, 2013

Suppose I have 3 branches, dev, feature1, feature2. I merge feature 1 into dev. How can someone else see that feature1 branch is now on dev?

Preferably by not looking at the graph. If there are 50 feature branches, it becomes difficult to follow in graph. Can Sourcetree do something like click on feature1 and it shows a list of other branches that feature1 is on?

1 answer

1 accepted

0 votes
Answer accepted
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2013

We don't expose this right now but here's the command line version which you can execute via the Terminal button:

Find branches which a commit (or branch pointing to a commit) have been merged into:

git branch --contains <commit/tag/branch>

Find branches which have been merged into the named branch:

git branch --merged <commit/tag/branch>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events