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

Cannot push to origin

After upgrade to Sourcetree 3.2.5 [6 Aug 2019]

There are some differences with before where use push to origin function.

 

Before:

It will auto fill the Remote branch text-box with my new local branch name and can click Push button to push to origin

 

Sourcetree 3.2.5 [6 Aug 2019]:

It will leave it blank and click Push button will produce error.

22 answers

This broke for me when upgrading to Sourcetree 3.3.4 on windows. It is a bug in sourcetree.

A workaround for the issue is when sourcetree autofills the "Remote branch" field in the push dialog the first time pushing a new branch from local, Delete what ever sourcestree autofills and enter it manually or copy and past the previous values and the push will work.

I just have the same issue on 3.3.4

All my local source is lost b/c of the remote branch not found

Like AKrizan likes this

I figured out a shorter workaround right after writing this, in the "Remote branch" delete the forwards slash character and the write it again and it will work.

Have not experienced losing any remote branches i only experience the issue with new branches that needs to be pushed remote.

Like # people like this

Thank you.  This helped.

thanks, this worked.

Thank you so much. Copy/paste previous values worked. Definitely a bug in version 3.3.4.

Like StefanS likes this

For me, after the first push Source tree cleared the "Remote branch" text box to the empty field. So, push didn't work because "Remote branch" is a simply empty string, but it's hard to track this as it happens at the moment when a dialog box is hidden. Of course, typing a name into "Remote branch" fixes the issue. 

still problem in 3.2.6

same problem here in 3.2.6

Same problem here. If I create a new branch then try to push it to the origin, the remote branch name is left blank and the "Track?" checkbox is left in an indeterminate state.

Capture.PNG

This results in the following error even after manually entering a branch name and checking the Track? option: 

The Remote branch '' (Local branch = 'test2') is invalid. Ref names must follow git ref-format rules:
https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html
Completed with errors, see above.

I have the exact same issue as lee_m.

Same problem here as of the update of 02/09/19 : 3.2.6.3544

Confirmed to be working again when downloading Sourcetree 3.1.3 from the website and installing this over the existing installation.

I created a bug report almost two weeks ago https://jira.atlassian.com/browse/SRCTREEWIN-12194

This bug report describes the issue really well: https://jira.atlassian.com/projects/SRCTREEWIN/issues/SRCTREEWIN-12284

Please vote it up for the SourceTree team to pay attention to it.

I have same problem. It is really anoying. In previous version. I think 3.2.4 it automatically created new branch on origin. After switching to 3.2.5, when I create new branch I always needs to push it in cmd like git push origin xxx

One team member facing the same issue; force push does not work either.  Remote branch is not created and sourcetree shows a git error saying the branch name does not conform when you try to create it manually; downgrading to 3.1.2 was the only fix.

I found the solution! You just need to rename the current branch. You can even put the same exact name! The default value SourceTree adds to your branch name is invalid.

Just happened in 3.3.4.

Had to remove the value ("master") from the "Remote branch" TextBox and manually entered "master".

0 votes

Hello Gerry and welcome to the Community!

Thank you for reporting a change in the product after an update. We would be interested to know what version to upgraded Sourcetree from so we may review the release notes to see if there was a behavior change.

We look forward to hearing back which version you have prior to the upgrade.

Regards,
Stephen Sifers

I had the same problem as mentioned above. 

When upgrading to 3.2.5 from what I think was 3.1.3 (which still works for my colleagues), I could no longer work with the push dialog.

 

But today, after I've tried to update embedded git (which didn't work), update windows and multiple reboots it works again.

Like Stephen Sifers likes this

Sorry for the late replay, I upgraded from version 3.1.3. 

Version 3.3.4.3796 still have the same issue (Windows)

Facing the same issue

Have the same issue with version 3.2.5

but when doing commandline push from terminal from Sourcetree it works. Weird enough.

updated to sourcetree 3.6.2 but the issue is still the same.

3.6.2 does fix it, after reboot

Like Dmitry Melnikov likes this

Had the same issue. We noticed that sourcetree site offers to download version 3.1.3 now, so I've reinstalled that version for now.

Still same problem with 3.2.6 version as well.

Also same problem

In my case problem gone with 3.6.2.

same problem since updating to 3.2.6

I recently upgraded to 3.2.6 and have this problem as well.

 

I did a commit, and a "1" shows up on the tool bar by the "push" icon, but when I click "push", there are no branches to push in the dialog that pops up.

0 votes
Deleted user Sep 19, 2019

Putting in my 2 cents. For me, it also does not work in 3.2.6 but if I force push, it works. Sometimes the repo admin doesn't make that option available, so I'll try downgrading to 3.1.3.

Having the same problem when trying to create a new branch with hg flow

I fixed with SourceTree 3.2.6 version!

 

Behavior:

I selected "Push to origin" instead of "Push to same new branch name"

 

Let try!

I resolve the problem when push branch with remote branch default(space)!

Still happening in Sourcetree 3.3.4.

@dw-mschneider 's solution worked for me - If the remote branches are blank when trying to Push, which happens when it's a new repository, it used to still work and would create those branches in the remote, but this time I had to enter the branch names manually. Worked after that.

still problem in 3.2.6

still problem in 3.3.8 WTF

Suggest an answer

Log in or Sign up to answer
TAGS
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,902 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