Git错误:“请确保您具有正确的访问权限,并且存储库存在" [英] Git error: "Please make sure you have the correct access rights and the repository exists"

查看:121
本文介绍了Git错误:“请确保您具有正确的访问权限,并且存储库存在"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows上使用TortoiseGit.当我尝试从标准Windows资源管理器的上下文菜单中克隆时,出现此错误:

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 sure you have the correct access rights and the repository exists

更准确地说,终端的快照如下:

More precisely, the snapshot of terminal is the following:

git.exe克隆--progress -v"git @ arobotdev:\ git \ AlfaRobot.git""C:\ Work \ AlfaRobot"

克隆到"C:\ Work \ AlfaRobot" ...
权限被拒绝,请重试.
权限被拒绝,请重试.
权限被拒绝(公钥,密码).
致命:无法从远程存储库读取.

请确保您具有正确的访问权限
并且存储库存在.

git没有干净退出(退出代码128)(21450毫秒@ 19.09.2014 10:36:58)

git.exe clone --progress -v "git@arobotdev:\git\AlfaRobot.git" "C:\Work\AlfaRobot"

Cloning into 'C:\Work\AlfaRobot'...
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

git did not exit cleanly (exit code 128) (21450 ms @ 19.09.2014 10:36:58)

我该怎么做才能使git正常工作?

What should I do to make git work properly ?

推荐答案

您的git URL可能已更改.使用以下命令更改本地目录中的URL

Your git URL might have changed. Change the URL in the local directory by using the following command

git remote set-url origin git@yourGitUrlHere

这篇关于Git错误:“请确保您具有正确的访问权限,并且存储库存在"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆