GitHub for Windows提交失败“failed to sync this branch”
2016-02-23 10:56
295 查看
今天github for windows同步推送远端github出问题了,提交到本地没问题,远端一直推送不上去,挺棘手的,试了几个网上的方法不管用。问题如下,报这个错:
![](http://images2015.cnblogs.com/blog/545989/201602/545989-20160223100807818-1323199046.jpg)
经过几轮摸索,终于找到一个解决方法,如下图所示,在github for windows界面点击右上角的设置图标,选择”Open in git Shell “打开Shell窗口
![](http://images2015.cnblogs.com/blog/545989/201602/545989-20160223101346615-346821804.jpg)
先用命令”git pull“拉去远程github上代码,再用"git push"把已经提交到本地的代码推送提交到远程github上即可,成功!
![](http://images2015.cnblogs.com/blog/545989/201602/545989-20160223104600927-1376970460.jpg)
虽然能用shell命令窗口成功推送远端,但是这样还是没能解决github for windows可视化界面无法推送到远端github的问题,如有大神能解决,请多多指教。
failed to sync this branch.
You might need to open a shell and debug the state of this repo.
![](http://images2015.cnblogs.com/blog/545989/201602/545989-20160223100807818-1323199046.jpg)
经过几轮摸索,终于找到一个解决方法,如下图所示,在github for windows界面点击右上角的设置图标,选择”Open in git Shell “打开Shell窗口
![](http://images2015.cnblogs.com/blog/545989/201602/545989-20160223101346615-346821804.jpg)
先用命令”git pull“拉去远程github上代码,再用"git push"把已经提交到本地的代码推送提交到远程github上即可,成功!
![](http://images2015.cnblogs.com/blog/545989/201602/545989-20160223104600927-1376970460.jpg)
虽然能用shell命令窗口成功推送远端,但是这样还是没能解决github for windows可视化界面无法推送到远端github的问题,如有大神能解决,请多多指教。
相关文章推荐
- List of Algorithms
- 使用python操作elasticsearch实现监控数据及kibana分析
- Spring创建JobDetail的两种方式
- Python的UnicodeEncodeError: 'ascii' codec can't encode characters
- 寒假Java知识点总结
- 【C++】普通函数、虚函数和纯虚函数
- Pandas数据分析基础
- VS2010 C++ 操作Excel表格的编程实现
- phpstorm的第一个程序:helloworld
- ASP.NET入门教程:事件句柄
- PCA:matlab主成份分析
- eclipse 默认UTF-8 -Dfile.encoding=UTF-8
- C++内存管理
- 常用代码备份--多线程
- java 流与文件理解
- goroutine 小问题
- 常见的C语言内存错误及对策
- Python学习笔记《一》
- 浅析若干Java序列化工具
- matlab 扩大虚拟内存