我有一个git repository。我在Windows ADT中有一个GUI客户端,在Eclipse ADT中有EGit。通常我在Eclipse ADT中编辑并使用GUI客户端来更新Github库。首先我提交(它创建一个缓冲区),然后当我同步时,它将它上传到我的实际仓库。错误:请求的URL返回错误:403访问时禁止访问
现在我克隆了Linux上的我的回购(CentOS 6.4)。一切都安装好了。我改变了一些文件。然后我用git add
和git commit -m "message" -a
命令,它工作正常。但我的实际github回购没有更新。经过一番搜索后,我发现我们必须明确提供git push
命令。之后我得到
[[email protected] Android]$ git push
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/aniket91/Android.git/info/refs
fatal: HTTP request failed
什么问题出在哪里?没有防火墙或代理服务器,并且我已经靠近iptables服务。有没有人遇到过这种情况?应该做什么?
以下this的答案后(这样的工作,我得到了下面的错误)
[[email protected] Android]$ git push origin master
The authenticity of host 'github.com (192.30.252.130)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
任何建议表示赞赏。
我想要做的命令行使用** git push origin master ** –
@AniketThakur然后检查您的SSH配置:http://stackoverflow.com/a/7927828/6309 – VonC
感谢主要部分是生成SSH密钥并将其存储在您的github设置中。一步一步 - > https://help.github.com/articles/generating-ssh-keys –