Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,055
Community Members
 
Community Events
165
Community Groups

Source Tree branch push only show master branch

Edited

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.

 

unnamed.png

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.

Capture.PNG

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

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.

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
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,838 views 127 27
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