Can't Clone Private Repo On Github From SourceTree
Answer :
It happens because SourceTree didn't get some private access from Github while authenticating. So the solution is very simple
- Login into your Github account on any browser
- From top right corner select SETTINGS
- Now select DEVELOPER SETTINGS
- From DEVELOPER SETTINGS select PERSONAL ACCESS TOKEN
- Now from PERSONAL ACCESS TOKEN select GENERATE TOKEN
Fill Note as
sourcetree
and Check All Scopes from checkbox as show in below screenshotsAfter Click on Generate Token
Now Open sourceTree
Click on sourceTree preference & Click add Account
- Select options as shown in below screen shot
- Enter username as your Github account username and password as Generated Token from Github
- Click on SAVE now you might see all your repository are visible and can clone too
Hope it helps
I had same problem. My fix way:
Remove user from SourceTree settings (optional, i not sure);
Add you account in setting and generate new SSH key (it's a main part of fix);
Clone your repo;
If SourceTree sill can't clone repo you can try to clone from main page of SourceTree choosing external repos.
Comments
Post a Comment