您的位置:首页 > 其它

Permission denied (publickey). fatal: The remote end hung up unexpectedly while pushing back to git

2014-04-16 15:20 806 查看
配置完git ssh后

ssh -T git@github.com 返回正常结果

Hi ****! You've successfully authenticated, but GitHub does not provide shell access

但是在push 的时候出现 如下错误


Permission
denied (publickey). fatal: The remote end hung up unexpectedly while pushing back to git repository [duplicate]

解决方法:
.git/config文件将
url = https://@github.com/linglongwang/Demo.git
改为
url = https://username@github.com/linglongwang/Demo.git
再 git push 成功!

stackoverflow
http://stackoverflow.com/questions/7065257/permission-denied-publickey-fatal-the-remote-end-hung-up-unexpectedly-while
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: