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

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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

536 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot