Why is my new branch not actually a branch?

When I create a new branch, Sourcetree doesn't seem to be creating an actual branch. To illustrate, I started on my 'develop' branch, clicked 'Branch' and named it 'test_branch', and when I clicked 'Create Branch' it just added the 'test_branch' icon next to 'master' and 'develop':

sourcetree.png

Not long ago, it was branching properly so if I created a new branch the tree looked like this:

branch.png

I think somewhere along the way I messed up my 'master' branch. Does anybody have an idea of what could be wrong and how to fix this?

Thanks!

 

1 answer

0 votes

I think what you are seeing is correct.

When you first create the new branch 'test_branch' its HEAD simply points to the saem ref.commit as the HEAD of master and develop branches.

Only once you start making new commits to 'test_branch' will the HEADs diverge and the labels separate.

Likewise you will only get a side-by-side visualization of your branch and master, for example, once mast has new commits created after the branch point.

Michael, I think you're correct. I kept researching this and found some answers here: https://community.atlassian.com/t5/Sourcetree-questions/How-to-read-the-Graph-in-SourceTree-part-2/qaq-p/165698/jump-to/first-unread-message

It turns out those colored lines aren't branches. They represent the lineage of commits and that's critical to understanding what you're looking at.

Thanks for your thoughts.

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 ...

260 views 0 3
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