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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24875756/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 10:13:51  来源:igfitidea点击:

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

gitbitbucket

提问by tvieira

I have the ssh keys added in Bitbucket. If I do ssh -T [email protected]he says I'm logged in. But when I do a git push/pull I get the following message

我在 Bitbucket 中添加了 ssh 密钥。如果我这样做,ssh -T [email protected]他说我已登录。但是当我执行 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.

My cat .git/configoutputs:

我的cat .git/config输出:

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

if I do:

如果我做:

git remote -v  

prints out:

打印出来:

heroku  [email protected]:herokuUrl.git (fetch)
heroku  [email protected]:herokuUrl.git (push)
origin  [email protected]:myUserName/myRepo.git (fetch)
origin  [email protected]:myUserName/myRepo.git (push)

采纳答案by brain

I got the same message, and I had to remove my user id from the path.... So instead of:

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

url = [email protected]:myUserName/myGitRepo.git

What worked was:

有效的是:

url = [email protected]:myGitRepo.git

回答by Sanji

This error is because you renamed on bitbucket. First you check:

这个错误是因为你在 bitbucket 上重命名了。首先你检查:

git remote -v origin [email protected]:OldName/wp_tanhoangminhgroup.com.vn.git

then you must change the path under new name

那么您必须更改新名称下的路径

git remote set-url [email protected]:NewName/wp_tanhoangminhgroup.com.vn.git

回答by osehgol

Make sure you're not adding the SSH key under "Deployment Key" in your Bitbucket repository's settings. What you in fact need to do is add the SSH key under "Manage Account" (Click your Avatar)> "SSH Keys". There's an explanation in this post

确保您没有在 Bitbucket 存储库设置中的“部署密钥”下添加 SSH 密钥。您实际上需要做的是在“管理帐户”(单击您的头像)>“SSH 密钥”下添加 SSH 密钥。这个帖子里说明