conq:存储库不存在。致命:无法从远程存储库读取

时间:2014-07-21 22:16:20

标签: git bitbucket

我在Bitbucket中添加了ssh密钥。如果我ssh -T git@bitbucket.org,他说我已登录。但是当我执行git push / pull时,我收到以下消息

conq: repository does not exist.
fatal: Could not read from remote repository.

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

我的cat .git/config输出:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
    precomposeunicode = true
[remote "origin"]
    url = git@bitbucket.org:myUserName/myGitRepo.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
[remote "heroku"]
    url = git@heroku.com:herokuUrl.git
    fetch = +refs/heads/*:refs/remotes/heroku/*
[branch "somebranch"]
    remote = origin
    merge = refs/heads/somebranch

如果我这样做:

git remote -v  

打印出来:

heroku  git@heroku.com:herokuUrl.git (fetch)
heroku  git@heroku.com:herokuUrl.git (push)
origin  git@bitbucket.org:myUserName/myRepo.git (fetch)
origin  git@bitbucket.org:myUserName/myRepo.git (push)

3 个答案:

答案 0 :(得分:11)

我收到相同的消息,我不得不从路径中删除我的用户ID ....所以而不是:

url = git@bitbucket.org:myUserName/myGitRepo.git

有效的是:

url = git@bitbucket.org:myGitRepo.git

答案 1 :(得分:5)

此错误是因为您在bitbucket上重命名。 首先你检查:

git remote -v origin git@bitbucket.org:OldName/wp_tanhoangminhgroup.com.vn.git

然后您必须更改新名称下的路径

git remote set-url git@bitbucket.org:NewName/wp_tanhoangminhgroup.com.vn.git

答案 2 :(得分:2)

确保您未在​​"部署密钥"下添加SSH密钥。在你的Bitbucket存储库的设置中。您实际需要做的是在"管理帐户"下添加SSH密钥。 (点击你的头像)> " SSH密钥"。有一个explanation in this post