【发布时间】:2013-11-12 09:41:05
【问题描述】:
我有一个 git repository 。我在 Windows 中有一个 GUI 客户端,在 Eclipse ADT 中有一个 EGit。通常我在 Eclipse ADT 中编辑并使用 GUI 客户端更新 Github 存储库。首先我提交(它创建一个缓冲区),然后当我同步它时将它上传到我的实际仓库。
现在我已经在 Linux(CentOS 6.4) 上克隆了我的 repo。一切都设置好了。我更改了一些文件。然后我使用了git add 和git commit -m "message" -a 命令,它运行良好。但是我实际的 github 存储库没有更新。经过一番谷歌搜索后,我发现我们必须明确提供git push 命令。之后我得到了
[aniket@localhost 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 回答后(哪种工作我得到以下错误)
[aniket@localhost 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
欢迎提出任何建议。
【问题讨论】: