I entered my account details in SourceTree for 2 accounts. The first was set as the default. I could browse repositories using both accounts, however I could not clone any from the second (non-default) account. I deleted the first account and made the second default, however I still have the same problem.
It goes like this - when I select the repository from my list of accessible github repos (it lists them all fine), and return to the 'Clone Repository' screen, the Source Path / URL field has a notice under it: 'This is not a valid source path / URL'. When I click on the 'details' button I get a dialog with:
ERROR: Permission to <repo>.git denied to <username>.
fatal: The remote end hung up unexpectedly
ERROR: Permission to <repo>.git denied to <username>.
fatal: The remote end hung up unexpectedly
abort: repository git@github.com:<repo>.git not found!
ERROR: Permission to <repo>.git denied to <username>.
fatal: The remote end hung up unexpectedly
Where <username> is the first (and now deleted) user and <repo> is the repo I selected from the list.
I am also getting 2 'GitHub API call failed' dailogs popping up every time I try to browse my repositories, both with the same content: 'The operation couldn’t be completed. (SDNetDomain error 7.)' - not sure if this is related.
Thoughts?
Thanks,
Mark