Can’t clone private repo on github from SourceTree

It happens because Sourcetree didn’t get some private access from Github while authenticating. So the solution is very simple.

  1. Login to your Github account on any browser.

  2. From the top right corner select SETTINGS.

  3. Now select DEVELOPER SETTINGS.

  4. From DEVELOPER SETTINGS select PERSONAL ACCESS TOKEN.

  5. Now from PERSONAL ACCESS TOKEN select GENERATE TOKEN.

  6. Fill Note as Sourcetree and Check All Scopes from the checkbox as shown in the below screenshots.

  7. After Click on Generate Token.enter image description here

  8. Now Open Sourcetree.

  9. Click on Options in Tools menu & Click add Account.

  10. Select options as shown below screenshot.enter image description here

  11. Enter username as your Github account username and password as Generated Token from Github.

  12. Click on SAVE now you might see all your repository are visible and can clone too.

Hope it helps.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)