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

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 in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,468 views 0 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you