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

后端 未结 27 953
面向向阳花
面向向阳花 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:07

    If it was working before and suddenly stopped working:

    This issue can be caused because sometimes ssh-agent is not persistent across reboots. You should check if ssh-agent has your key added:

    ssh-add -l -E md5
    

    if you get the output like:

    The agent has no identities.
    

    it means ssh-agent has lost your key. In that case, you simply need to add the identity key again. Something like:

    ssh-add ~/.ssh/git_rsa
    

    The error should disappear now!

提交回复
热议问题