Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Why does my project not want to push despite everything I've tried to fix it?


I'm working on a project for school, and I was able to commit it but it won't push properly.
The error I keep receiving is this:


remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.


The account I'm logged into is my personal BitBucket account, and the repository I'm using is cloned from my school account. Whenever I attempt to push, it asks for me to login, and I've tried logging into both accounts but both cough up the same error. I've tried fixing this problem by following the steps specified on the Atlassian troubleshooting article related to this error and that didn't work either.

I'm way past the deadline for this project, but I would still like to solve this issue just to avoid future problems when working from home again.

All help will be appreciated, thanks.

1 answer

0 votes
Ana Retamal Atlassian Team Jul 09, 2018

Hi Gerardo, welcome to the Community! 

lt looks like the credentials you entered might be wrong. You can start checking your account settings to make sure the credentials are correct, you can find them by following Connect your accounts.

If you're using SSH, you can also check which account is the system using to authenticate you by running the following in the command line, this will attempt to create a connection to Bitbucket for Git:

ssh -Tv

If you're still getting errors, I'd recommend wiping Sourcetree preferences to make sure there are no remnants from the wrong credentials, then go ahead and enter the right ones.

Hope that helps!

Best regards,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,144 views 5 13
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