git - conq : repository does not exist. 致命:无法从远程存储库读取

标签 git bitbucket

我在 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/

相关文章:

git - .xccheckout 有树冲突

git - Bitbucket 管道 webpack 构建和 ftp 在服务器上部署 NO JS OUTPUT

mercurial - Bitbucket/Mercurial/Tortoise 如何将文件夹添加到 Bitbucket 存储库?

Github Windows 同步失败

git - SourceTree 总是权限被拒绝(公钥)

git - 使用 Git 对 Microsoft Dynamics NAV 进行版本控制?

git - 删除 Bitbucket 中的分支

php - 可以在同一个 git 存储库中存储两种不同类型的代码吗?

git - merge 不相关的 git 存储库,保留历史/分支

git delete branch with name 包含特殊字符