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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,557,331
Community Members
 
Community Events
184
Community Groups

Issue pushing from SourceTree

Edited

I am using SourceTree for the first time and am having trouble pushing my local repository. I was able to create a local repository and a duplicate online. I added files to my local repository and now want to push them to the remote.

I can login to bitbucket on the web without issue and do see my new repository. Also in SourceTree I can see my local repository and new files. 

When I try to push I get this error:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags --set-upstream eval_nucleo_g431_r202 master:master
remote: Invalid username or password
fatal: Authentication failed for 'https://bitbucket.org/btremaine/eval_nucleo_g431/'
Pushing to https://bitbucket.org/btremaine/eval_nucleo_g431/
Completed with errors, see above.

ADDITIONAL INFO:

If I open the terminal on SourceTree for either repository and issue git ls-remote I get an authentication error. However, if I open git from the Windows command line and issue git ls-remote the authentication is valid. It appears to be something set wrong in my SourceTree environment. Also, in the Windows launched git I was able to perform the push commands. 

Any idea what I need to change in SourceTree?

 

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Dec 14, 2020

Hi @Brian Tremaine and welcome to the community!

I believe that the most likely reason for this error is that SourceTree has stored incorrect credentials for bitbucket.org, which are used when you are doing an operation like clone/pull/push.

My suggestion would be to clear any stored credentials for bitbucket.org from SourceTree, and then give it another try. You can find instructions in the following doc on how to clear stored credentials (the instructions for SourceTree are at the end of the page):

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events