首页 > Windows开发 > 详细

GitHub for Windows提交失败“failed to sync this branch”

时间:2016-02-23 12:53:06      阅读:480      评论:0      收藏:0      [点我收藏+]

        今天github for windows同步推送远端github出问题了,提交到本地没问题,远端一直推送不上去,挺棘手的,试了几个网上的方法不管用。问题如下,报这个错:

failed to sync this branch.

You might need to open a shell and debug the state of this repo.

技术分享

 

经过几轮摸索,终于找到一个解决方法,如下图所示,在github for windows界面点击右上角的设置图标,选择”Open in git Shell “打开Shell窗口

技术分享

先用命令”git pull“拉去远程github上代码,再用"git push"把已经提交到本地的代码推送提交到远程github上即可,成功!

技术分享

虽然能用shell命令窗口成功推送远端,但是这样还是没能解决github for windows可视化界面无法推送到远端github的问题,如有大神能解决,请多多指教。

 

GitHub for Windows提交失败“failed to sync this branch”

原文:http://www.cnblogs.com/yige/p/5209190.html

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