首页 > 其他 > 详细

git push 失败与解决方法汇总

时间:2014-04-07 21:07:57      阅读:904      评论:0      收藏:0      [点我收藏+]

1.http链接失败:

现象:

  1. “Permission denied (publickey).  
  2. fatal the remote hang up unexpectly

 原因:http链接失败

解决方法:

1)生成ssh密钥

2)然后将公钥拷贝到gitup配置之中。“Account Settings” > Click “SSH Public Keys” > Click “Add another public key” 

3)修改本地配置

  1. edit .git/config file under your repo directory
  2. find url=entry under section [remote "origin"]
  3. change it from url=https://MichaelDrogalis@github.com/derekerdmann/lunch_call.git tourl=ssh://git@github.com/derekerdmann/lunch_call.git. that is, change all the texts before @ symbol to ssh://git
  4. Save config file and quit. now you could use git push origin master to sync your repo on GitHub

参考:http://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed/9575906#9575906

git push 失败与解决方法汇总,布布扣,bubuko.com

git push 失败与解决方法汇总

原文:http://blog.csdn.net/trochiluses/article/details/23106561

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!