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

来源:互联网 发布:数据库存储多个坐标 编辑:程序博客网 时间:2024/05/01 01:38

配置完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

0 0
原创粉丝点击