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,369,555
Community Members
 
Community Events
168
Community Groups

SourceTree not letting me push changes

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 May 14, 2019

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

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

Mike Corsaro Atlassian Team 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

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

Atlassian Community Events