我在 Bitbucket 中添加了 ssh key 。如果我执行 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)
最佳答案
我收到了同样的消息,我不得不从路径中删除我的用户 ID...所以而不是:
url = git@bitbucket.org:myUserName/myGitRepo.git
有效的是:
url = git@bitbucket.org:myGitRepo.git
关于git - conq : repository does not exist. 致命:无法从远程存储库读取,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24875756/