简体   繁体   中英

Connecting GitHub Account and SourceTree with SSH

I am on a Windows 10 laptop with git version 2.20.1.windows.1 and Sourcetree version 3.0.17. I am using the System Git (I don't have the Embedded Git downloaded, so there isn't any interference there).

I am trying to add my GitHub account to Sourcetree for easier cloning of repos (so I don't have to use HTTPS links for each one), and I am not able to see any of the repos once the account is added. I have tried using both OAuth and basic, and also tried using OpenSSH, as suggested in this SO post (this is also the only way I could get Sourcetree to link with my Bitbucket account).

Unfortunately it is not working, but when I open Git Bash and type ssh -T git@github.com I receive a message acknowledging I have connected my account to git on my laptop. It also doesn't work adding the account via HTTPS (OAuth or basic).

Does anyone have a suggestion, as this is slowing my migration of some projects to GitHub?

Check your SourceTree Git settings, and make sure your are using the System Git, not the embedded one .

https://confluence.atlassian.com/sourcetreekb/files/785323587/785323594/1/1444984682597/GitOption2.png

Otherwise, your local Git installation (which does connect to GitHub) would be ignored.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM