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

Unable to clone, fetch or push to a private repository in Github

Hi all,

I'm unable to do anything with my private repositories in GitHub. I'm can work with no porblems with public ones.

I'm able to see the repositories from Sourcetree but if I try to clone a prvate one says error in login. This is happening only with private ones.

I have similar scenario trying to push to github. With Public is working fine but with private I have the same authentication error.

I'm running version

Does anyone what the problem can be?

1 answer

0 votes
Ana Retamal Atlassian Team Nov 06, 2017

Hi Ramon, can you confirm you've followed the steps at Connect your Github account already?

Was it previously working for you, or is this the first time you're setting this up?


Can you send us a screenshot of the error you get?

Best regards,


I've been working with problems, and suddenly it stopped working after the update.

I tried many different things, even setup 2 way Auth.

The problem is solved now after following a suggestion in the questions about turning Git to system one and back again to embedded one. After this, everything began to work again.


I switched in preferences between the built in git and the OS git, and back again to no avail. For me everything works including push from a terminal command line, and everything except push works from within SourceTree. It had previously worked. I am using 2FA.

Yang_Liu I'm New Here May 12, 2020

If you are using 2FA with your GitHub account, you can use GitHub token instead of the password to login to your GitHub account, it works fine for me.

Reference: Two-Factor Authentication (2FA) with GitHub in SourceTree

Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

5,252 views 0 12
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