你的位置:首页 > 软件开发 > ASP.net > GitHub for Windows提交失败“failed to sync this branch”

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

发布时间:2016-02-23 12:00:13
今天github for windows同步推送远端github出问题了,提交到本地没问题,远端一直推送不上去,挺棘手的,试了几个网上的方法不管用。问题如下,报这个错:failed to sync this branch.You might need to open a shel ...

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

failed to sync this branch.

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

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

 

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

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

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

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

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

 


原标题:GitHub for Windows提交失败“failed to sync this branch”

关键词:Windows

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。