How can I link SourceTree with my GitHub account ?

ApacheU6 February 22, 2018

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
ApacheU6 February 27, 2018

[Up]

Any suggest ?

0 votes
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 22, 2018

Hi

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.

Nick Williams February 22, 2018

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

ApacheU6 February 23, 2018

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
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 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.

https://githubengineering.com/crypto-removal-notice/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events