Cloning a read-write github repository using TortoiseHg

后端 未结 5 1760
长情又很酷
长情又很酷 2020-12-24 08:57

I\'m trying to clone my personal fork on github using the git+ssh protocol with TortoiseHg. It\'s giving me a rather strange error. Here is the command

hg cl         


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-24 09:26

    I have found a way around this but it's pretty hackish. I noticed that ProcessMonitor was showing it looking for ssh.exe in several different paths so I copied the TortoisePlink.exe in the TortoiseHg folder and named it ssh.exe.

    copy "C:\Program Files\TortoiseHg\TortoisePlink.exe" "C:\Program Files\TortoiseHg\ssh.exe"
    

    With just this change it will still fail the authentication. You'll get a pop-up box and this.

    importing Hg objects into Git
    abort: the remote end hung up unexpectedly
    

    So you need to get a hold of pageant.exe that comes with the main PuTTy install. Start that up and add your key to it. Then run the clone command again and it should authenticate just fine.

提交回复
热议问题