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

Not able to push to remote: unauthorized

Using SourceTree, when I try to push to the remote bitbucket repository, I am asked to log into the Atlassian account. I tried both the username as well as the email. I tried both the password for the account as well as the app password. It throws this error:

remote: Invalid username or password
fatal: Authentication failed for 'https://Linda_Stewart@bitbucket.org/km_gissolutions/fme-server-workspaces.git/'

I then use Terminal to run the "git push" command, that same login dialog box pops up and I get this error in the message window:

fatal: ArgumentOutOfRangeException encountered.
Specified argument was out of the range of valid values.
Parameter name: resultType

Then another dialog pops up asking for the bitbucket username which I put in the same username as that of my Atlassian account. Then it asks for the password. I use the same one that was throwing the inavlid error. It worked and I am able to push my changes to the remote repository. 

I'm positive of the username and password as I am able to do it through git command. So what is the difference between using SourceTree? 

1 answer

1 accepted

0 votes
Answer accepted
Mike Corsaro Atlassian Team Sep 21, 2018

Hello! This might be related to an issue with the git-credential-manager-for-windows. Could you try the following:

That totally worked. Thanks Mike.

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,927 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