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

SourceTree not letting me push changes

Pooja Mehta May 14, 2019

When I try to push my changes in sourcetree, it gives me a a popup for Bitbucket login. I have changed my password twice and on logging in, it shows me the following error:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master
Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://pooja1993@bitbucket.org/bbqh/androidtablet.git/'

Pushing to https://pooja1993@bitbucket.org/bbqh/androidtablet.git
Completed with errors, see above.

 

Thank you!

 

 

1 answer

0 votes
Mike Corsaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 14, 2019

Hello! Are you using Windows or Mac? Additionally, which version of Sourcetree are you using?

Pooja Mehta May 14, 2019

Hi! I am using Windows. I am using Sourcetree version 3.1.3.3158.

Mike Corsaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 14, 2019

Could you try the following?

  • Open Tools > Options
  • Go to "Authentication" and remove the Bitbucket accounts you're using (including the entries under "Git")
  • Then re-add your Bitbucket account by clicking Add
  • When adding the account, make sure the "Authentication" is set to "OAuth" and hit "Refresh OAuth Token"
  • Hit "OK"
  • Try to push to your repository again
Like Arshad likes this
Pooja Mehta May 14, 2019

Hi Mike,

I am getting the following error now:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master
fatal: HttpRequestException encountered.
An error occurred while sending the request.

remote: Invalid username or password
fatal: Authentication failed for 'https://pooja1993@bitbucket.org/bbqh/androidtablet.git/'

Pushing to https://pooja1993@bitbucket.org/bbqh/androidtablet.git
Completed with errors, see above.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events