Git error: “Please make sure you have the correct access rights and the repository exists”

后端 未结 27 929
面向向阳花
面向向阳花 2020-12-12 14:49

I am using TortoiseGit on Windows. When I am trying to Clone from the context menu of the standard Windows Explorer, I get this error:

Please make sur

27条回答
  •  一整个雨季
    2020-12-12 15:03

    Here is how I solve this issue. I was using Babun(mintty.exe) on Win7/10. When I have tried many solutions mentioned above, and none of them works. I realized maybe I just used wrong ssh agent... So I run echo $GIT_SSH to find out, it shows the path to Plink.exe. What I actually expected is OpenSSH.

    So, I add following one-liner to ~/.zshrc file

    Note 1: You can execute it in babun directly also
    Note 2: You if you use bash then the config file is .bashrc

    export GIT_SSH=$(which ssh)
    

    And It works!

提交回复
热议问题