克隆公共回购,推回。权限被拒绝(公钥)

时间:2013-04-17 01:52:49

标签: git github repository

刚刚克隆了一个public repo,它属于github上的company,我是admin。做了一些改变并将其推回去。

首先,它问我username / password对,并且我输入了自己的用户名和密码,它告诉我:

Username for 'github.com': 
Password for 'github.com': 
error: The requested URL returned error: 403 while accessing https://github.com/KablamoAU/SenchaXCodeBuild.git/info/refs
fatal: HTTP request failed

我通过将ssh添加到网址

来解决了这个问题

比它让我烦恼:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

但是我可以承诺在这个组织中的所有private回购,也可以创建其他回购。

所以我的问题是:

  1. 为什么github不允许我提交克隆回购的master,但这是一个微不足道的问题
  2. 我是否应该向组织添加密钥才能推送到public回购邮箱?或者你会提供什么解决方案
  3. PS。从来没有想过这么简单的问题可能需要很长时间才能解决。

1 个答案:

答案 0 :(得分:1)

首先确保你拥有 added key 从这个文件到GitHub

~/.ssh/id_rsa.pub

然后确保使用类似于此

的网址进行克隆
git clone git@github.com:antirez/redis.git

另一种选择是直接联系他们,如果你还没有。我已经多次给他们发了电子邮件,有愉快的经历。

support@github.com

也许这个页面可以提供帮助

Error: Permission denied (publickey)