Kor*_*gay 11 windows git atlassian-sourcetree
当我从命令行输入git pull时,我可以毫无问题地获取代码.
当我打开SourceTree for Windows,并尝试拉,我得到:
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see above.
Run Code Online (Sandbox Code Playgroud)
我可能做错了什么?
小智 11
看起来在Windows上使用SourceTree你必须使用Putty Agent.OpenSSH键不起作用.
如果您只有OpenSSH密钥:
您现在拥有包含密钥的PPK文件.
在源代码树中从工具菜单启动SSH代理并浏览到您的PPK文件.
所有操作现在应该可以正常工作
小智 5
如果您使用公钥/私钥对进行身份验证,则此方法有效:
打开Sourcetree并转到"工具>创建或导入SSH密钥"(这将打开PuTTY密钥生成器窗口)并单击"生成".
生成后,转到drupal.org并导航到"我的帐户>配置文件> SSH密钥",然后单击"添加公钥".
将生成的公钥从"PuTTY Key Generator"窗口("用于粘贴到OpenSSH authorized_keys文件的公钥:")复制到drupal.org并保存.
在"PuTTY Key Generator"窗口中输入"密钥密码短语"和"确认密码短语",然后单击"保存私钥".确保将其保存在您可以再次找到的地方.
关闭"PuTTY Key Generator"窗口,在SourceTree中转到"工具>启动SSH代理(选美)".您应该可以在此处选择您的私钥文件.(你刚刚保存的那个)
使用drupal.org提供的链接添加您的存储库.(username@git.drupal.org:项目/ your_project.git)
| 归档时间: |
|
| 查看次数: |
21859 次 |
| 最近记录: |