Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How can I link SourceTree with my GitHub account ?

Hi community !

I'm starting to SourceTree and for push my project an error ask me invalid username or password : sourcetree_error_invalidaccount.jpg

But I was connected my GitHub account correctly :sourcetree_error_account.jpg

SourceTree recognize my account but I can't push my project, I think the User when I push my project is different like my GitHub account. I don't know how to change it ? Some help ?

Thank you !

2 answers

0 votes
minnsey Atlassian Team Feb 22, 2018


If you haven't already can you update to v2.4.8.0.

Can you then open Windows Credential Manager and under the Windows Credentials section delete all entries with the prefix 'git:'

Can you then try re-adding your GitHub account in the Tools/Options/Authentication tab.

Can you then confirm that the Remote Repositories section in the New Tab correctly lists your GitHub repositories.

If that works then you should find a new entry in the Windows Credentials prefixed with 'git:'

At that point you should be able to fetch/pull/push with your remote.

I am having the same problem today, but this solution does not fix it.

Thank you for your answer Michael.

I've the update v2.4.8.0.

I've followed your step, but I can push but I can't pull and the same error appears : invalid username or password.

In the push window command at the bottom, I think I should have the git account but it's the atlassian account who is connected : sourcetree_error_atlassianaccount.jpg

minnsey Atlassian Team Mar 06, 2018

Hi It is odd that you can push but not pull.

Can you check your Git version? GitHub recently made some security changes and you will need to be running Git 2.16 or higher to avoid being effected by them.


Any suggest ?

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...

3,274 views 4 5
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