因此,在这个GitHub存储库上,我落后1位,领先2位。当我不得不解决后面的问题1时,它会输出以下结果:
git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我不太确定这意味着什么,想尽快解决此问题并将一些文件上传到存储库中。我是GitHub和SourceTree的初学者。
这意味着SourceTree使用SSH的方式无法在GitHub上对您进行身份验证。
首先检查命令行中的ssh -T [email protected]
是否有效:请参阅“ Testing your SSH connection”。
然后检查sourceTree设置:作为shown here,我建议使用OpenSSH客户端,而不是腻子(假设您使用ssh-keygen -t rsa -P "" -m PEM
来生成ssh私钥/公钥对,而不是腻子,或者您是不适用于Windows)