Creating a new branch in SourceTree


I created a new branch in SourceTree, committed my changes and then pushed to a remote.
My question is: why doesn’t the graph visually show the branch (diagonal line)? The new branch name does show under BRANCHES in left panel, but just not on the graph. The graph only shows a straight vertical line of nodes.

Here’s what I did:

1 - under BRANCHES on left, I double-clicked “master” to check out the latest and use as my current working source.


2 - edited files


3 - hit the Branch button in top menu bar


  • Current Branch: master


  • New Branch: branch-blue


  • hit “Pick”


  • selected the top item in list (master)


  • unchecked "checkout new branch"


4 - hit commit and entered message about changes


5 - hit push

  • selected new branch name ("branch-blue") & hit OK

After all this, SourceTree told me I was “one ahead” and the Push button still had a red indicator that I needed to push. So, I pushed again, this time selecting “master” as the branch to push. Only then where my changes pushed to remote. Why didn’t selecting my new branch work?

If I’d successfully pushed onto my new branch, shouldn’t I visually see that new branch in the graph?
What did I need to do differently here to actually create and push on the new branch?

Where can I find documentation on the New Branch dialog (step 3 above)? For example, documentation on Working copy parent vs. pick (and what to pick)?

Thanks in advance!

1 answer

Since you unchecked "checkout new branch", you changes were committed to master, not the new branch.

The graph won't show a separate line for the branch until it has its own commit.

Additional info about push - the push dialog doesn't push your latest commit to the selected branch, it pushes changes to your local copy of the branch to the remote copy of the 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...

1,228 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