今天github for windows同步推送远端github出问题了,提交到本地没问题,远端一直推送不上去,挺棘手的,试了几个网上的方法无论用。问题以下,报这个错:git
failed to sync this branch.
github
You might need to open a shell and debug the state of this repo.
shell
通过几轮摸索,终于找到一个解决方法,以下图所示,在github for windows界面点击右上角的设置图标,选择”Open in git Shell “打开Shell窗口windows
先用命令”git pull“拉去远程github上代码,再用"git push"把已经提交到本地的代码推送提交到远程github上便可,成功!this
虽然能用shell命令窗口成功推送远端,可是这样仍是没能解决github for windows可视化界面没法推送到远端github的问题,若有大神能解决,请多多指教。spa