小编Eti*_*Wan的帖子

“无法从远程仓库读取”...但我是所有者?

我在 GitHub 上创建了一个组织,我是它的所有者。我在这个组织中创建了一个 repo,用自述文件初始化。我用 ssh 克隆它没有任何问题。我对提交做了一些更改,当我尝试推送到远程源时:

$ git push
ERROR: Permission to Organization/repo.git denied to EtienneWan.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
$ ssh -T git@github.com
Hi EtienneWan! You've successfully authenticated, but GitHub does not provide shell access.
Run Code Online (Sandbox Code Playgroud)

我是我的组织的所有者,所以我不明白为什么我在克隆没有问题的情况下无法推送。

编辑:我用 git@github.com:Organization/repo.git 进行了
第二次编辑:我使用的密钥是由 GitHub 应用程序添加的。检查我的答案,我解决了我的问题。

git github

2
推荐指数
1
解决办法
597
查看次数

标签 统计

git ×1

github ×1