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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. This helped.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks, this worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much. Copy/paste previous values worked. Definitely a bug in version 3.3.4.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
still problem in 3.2.6
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
same problem here in 3.2.6
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the exact same issue as lee_m.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I created a bug report almost two weeks ago https://jira.atlassian.com/browse/SRCTREEWIN-12194
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just happened in 3.3.4.
Had to remove the value ("master") from the "Remote branch" TextBox and manually entered "master".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
still problem in 3.3.8 WTF
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I resolve the problem when push branch with remote branch default(space)!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I fixed with SourceTree 3.2.6 version!
Behavior:
I selected "Push to origin" instead of "Push to same new branch name"
Let try!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
same problem since updating to 3.2.6
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still same problem with 3.2.6 version as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also same problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my case problem gone with 3.6.2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
but when doing commandline push from terminal from Sourcetree it works. Weird enough.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Facing the same issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for the late replay, I upgraded from version 3.1.3.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.