由GUI TortoiseGit拉失败,但是由Git Bash成功完成

时间:2016-09-18 09:35:19

标签: git tortoisegit

使用TortoiseGit时出现以下错误,但我可以通过Git Bash使用命令"成功运行git pull。 git.exe pull --progress --no-rebase -v" origin"",我应该为TortoiseGit配置什么?

enter image description here

1 个答案:

答案 0 :(得分:0)

Git bash在%HOME%\.ssh中查找ssh私钥(git bash将HOME设置为%USERPROFILE%

但对于TortoiseGit,您需要在设置中指定相同的私钥(Git/Remote
和/或它使用putty:参见" Tips and tricks for SSH/PuTTY"

  

启动PuTTY,转到Connection-> SSH-> Auth并选择您的密钥

为了让TortoiseGit使用ssh而不是putty作为OP Jason条评论,您需要在网络设置中指定ssh.exe
如果您使用openssh(id_rsa / id_rsa.pub)生成了ssh密钥,而不是使用puttygenmykey.ppk)生成了ssh密钥,那就是这样。

http://guganeshan.com/blog/wp-content/uploads/2013/09/Change-SSH-client-in-Network-options-of-TortoiseGit-Settings.png

(图片来自博客文章" Setting up Git and TortoiseGit with Bitbucket, step by step" Guganeshan.T

相关问题