当修改或者添加完文件,git commit之后运行git push推送到远程仓库,第一次遇到问题:解决方案参考:解决fatal: unable to connect to github.com问题 http://www.linuxidc.com/Linux/2014-03/98667.htm$ git config --global url."https://".insteadOF git://然后连续两次次推送遇到问题:解决方案参考: Pushing to Git returning Error Code 403 fatal: HTTP request failed (见附1)GitHub似乎只支持ssh方式的读写远程仓库。因此配置当前本地仓库的 .git/config 文件,或者使用命令:$ git remote set-url origin ssh://git@github.com/RanHuang/contiki.git然后再次推送成功:
附1:
Pushing to Git returning Error Code 403 fatal: HTTP request failed Github seems only supports ssh way to read&write the repo, although https way also displayed "Read&Write".So you need to change your repo config on your PC to ssh way:nstead of editing .git/config file manually, you can use git remote set-url command. In your case it should be: git remote set-url origin ssh://git@github.com/derekerdmann/lunch_call.gitGitHub 的详细介绍:请点这里
GitHub 的下载地址:请点这里
推荐阅读:如何在 GitHub 建立组织 http://www.linuxidc.com/Linux/2013-08/88197.htmGitHub Linux下使用方法 http://www.linuxidc.com/Linux/2013-06/86417.htmWindows下Eclipse搭建GitHub开发环境图文教程 http://www.linuxidc.com/Linux/2013-06/85372.htmR语言 3.0.1 源码已经提交到 GitHub http://www.linuxidc.com/Linux/2013-05/84425.htm从GitHub将Maven项目导入Eclipse4.2 http://www.linuxidc.com/Linux/2013-04/83082.htmfatal: unable to connect to github.com问题解决树莓派学习笔记——webiopi配置文件说明相关资讯 Github
- GitHub使用操作指南 (今 08:43)
- 以无主管企业文化自豪,GitHub最终 (09月10日)
- Github提示Key is already use (06月07日)
| - GitHub 特殊技巧和Git基本操作 (09月14日)
- GitHub:诞生于Ruby,60%的员工远 (08月09日)
- FSF的道德评估认为GitHub不合格 (04月26日)
|
本文评论 查看全部评论 (0)