How to know what branches contains this branch?

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
Accepted answer

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
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

964 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you