如何解决无法成功git commit 和git push
2017-04-07 18:06
337 查看
如何解决无法成功git commit 和git push
20155324王鸣宇、20155314刘子健git add .
成功了
但是git commit无法实现。
![](https://images2015.cnblogs.com/blog/1072281/201704/1072281-20170407173842050-1808662106.jpg)
我先尝试了卸载git 重新下载git
方法如下
![](https://images2015.cnblogs.com/blog/1072281/201704/1072281-20170407174456691-2096995409.jpg)
详见娄老师的博客
卢肖明学长的博客
然而我重新卸载了和下载git之后却也无法成功git commit和git push。
根据提示百度了下错误的原因,主要集中在ssh公钥方面,于是重新去开源中国更新我的密钥,删除ssh密钥然后重新更新密钥
详见娄老师的博客
![](https://images2015.cnblogs.com/blog/1072281/201704/1072281-20170407174012207-875444206.png)
![](https://images2015.cnblogs.com/blog/1072281/201704/1072281-20170407174022378-422018877.png)
![](https://images2015.cnblogs.com/blog/1072281/201704/1072281-20170407174028410-693406843.png)
经过多次尝试之后终于能够配置好了ssh,但是
令人失望的是 依旧无法git commit
![](https://images2015.cnblogs.com/blog/1072281/201704/1072281-20170407174041378-1512136541.png)
最后把原上传文件夹备份后删除,在开源中国上重新克隆到我的虚拟机上。然后 重新尝试git commit 终于成功了!
![](https://images2015.cnblogs.com/blog/1072281/201704/1072281-20170407174050988-1758108655.png)
![](https://images2015.cnblogs.com/blog/1072281/201704/1072281-20170407174059378-192991303.png)
积攒了一周多的代码终于上传了上去。
总结:对本次解决问题的探索过程中我与20155314刘子健相互讨论、查阅、尝试等解决了这个问题。虽然一次又一次的失败是痛苦的,但是成功的那一刻是幸福的。
相关文章推荐
- git commit 两次导致无法push的问题解决
- 解决git push 报non-fast-forward updates were rejected错,成功上传project
- git 一直无法push的解决办法
- git合并分支或者push时,报错:“Please enter a commit message to explain why this merge is necessary,especi”的解决办法
- git 使用——关于使用指令hexo d 出现一大串waring以及无法成功部署到github的解决办法
- Git 修改 proxy,解决代理导致的代码无法 push 或 pull 的问题
- 小黑小波比.git解决无法push问题
- git合并分支或者push时,报错:“Please enter a commit message to explain why this merge is necessary,especi”的解决办法
- 如何解决failed to push some refs to git
- linux显示git commit id,同时解决insmod模块时版本不一致导致无法加载问题
- 如何解决git多个密钥时无法正常使用
- 在git push前如何遗弃掉历史commit
- 如何解决failed to push some refs to git
- ---GITHow 如何undo一个已经被push到上游服务器的commit
- PhpStorm等Jetbrains软件git无法push问题解决
- 如何解决failed to push some refs to git
- 如何解决failed to push some refs to git
- git如何解决failed to push some refs to git
- 如何解决failed to push some refs to git
- [转载]如何解决failed to push some refs to git