Git 推送:用户权限被拒绝,无法从远程存储库读取
Git push : Permission denied to user, could not read from remote repository
我正在尝试使用命令
git push origin branch
推动 gitHub(public 存储库)
我有以下错误:
ERROR: Permission to emilyreese/connaissance.git denied to
vulkanosaure fatal: Could not read from remote repository
我正在为 windows 使用 git(我尝试了 64 位和 32 位版本)
我已经做了:
- 使用以下方法生成 ssh 密钥:
ssh-keygen -t rsa -b 4096 -C
"my_email@example.com"
- 将此 ssh 密钥添加到 ssh-agent 中:
ssh-add ~/.ssh/id_rsa
- 将 ~/.ssh/id_rsa.pub 中的密钥添加到我的 GitHub 帐户中
- 使用命令
ssh-add -l -E md5
获取我的密钥指纹,并将其与我在 GitHub 帐户上看到的指纹进行比较
- 更改文件 my_repository/.git/config 并将 url = https://github.com/path_to_repo.git 替换为
git@github.com:path_to_repo.git 尝试 HTTPS 和 SSH 方法
任何帮助将不胜感激!
在这种情况下,您可以做的是
- 将此项目分叉到您的帐户;
- 做出你的承诺;
- 推送到您的存储库;
- 向原项目提交合并请求;
通过这种方式,您可以继续在分叉的存储库上工作或为原始项目做出贡献(总是 return 对社区有益)。
我正在尝试使用命令
git push origin branch
推动 gitHub(public 存储库)
我有以下错误:
ERROR: Permission to emilyreese/connaissance.git denied to vulkanosaure fatal: Could not read from remote repository
我正在为 windows 使用 git(我尝试了 64 位和 32 位版本)
我已经做了:
- 使用以下方法生成 ssh 密钥:
ssh-keygen -t rsa -b 4096 -C "my_email@example.com"
- 将此 ssh 密钥添加到 ssh-agent 中:
ssh-add ~/.ssh/id_rsa
- 将 ~/.ssh/id_rsa.pub 中的密钥添加到我的 GitHub 帐户中
- 使用命令
ssh-add -l -E md5
获取我的密钥指纹,并将其与我在 GitHub 帐户上看到的指纹进行比较 - 更改文件 my_repository/.git/config 并将 url = https://github.com/path_to_repo.git 替换为 git@github.com:path_to_repo.git 尝试 HTTPS 和 SSH 方法
任何帮助将不胜感激!
在这种情况下,您可以做的是
- 将此项目分叉到您的帐户;
- 做出你的承诺;
- 推送到您的存储库;
- 向原项目提交合并请求;
通过这种方式,您可以继续在分叉的存储库上工作或为原始项目做出贡献(总是 return 对社区有益)。