Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Source Tree branch push only show master branch


I am new to using source tree. This is what I have done;

I created a branch from the master.

made some changes

commit the changes

Now when I want to push the changes of the branch the dialog only show the master branch.



I am clearly in the branch when I commit and click push button.

How do I push to remote branch. Does it not get created when I branch from master?

I checked with other developers in my team and after they commit their changes the push button shows the push count in red. In my case it does not.


In my case I don't see this.


If I use the command line I can push it without any problem. I assume there is some sort of a setting to get this working?

in the command line I get following message


fatal: The current branch feature/reservation_3 has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin feature/reservation_3


I think when I create the branch if I know how to do this part from source tree that would fix this issue


3 answers

0 votes

In Source Tree, Check Tools -> Options -> Git -> Push branches. If it is set to current, it may cause this issue. Change it to simple. If that doesn't work, change to none.

0 votes

I am experiencing this same issue.

This only appears to happen when my local branch is tracking the remote. In other words, I can create a new branch from a specified commit, then when I commit changes to that local branch and click push, the local branch will appear in the list as long as it is not tracking the remote. From there I can select which branch to push to manually.

However, this is less than ideal and needs to be addressed.

I have the same problem.

I've updated to the latest version of sourcetree (3.4.2)

made sure SSH Agent has started.

tried pulling and fetching with SourceTree

even tried creating a branch with SourceTree

Still only have the master branch on the push, no joy

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 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...

5,692 views 4 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