It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Answer 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 Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted Jan 17, 2019 in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,431 views 13 14
Join discussion

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