解决方法一: git config --global push.default current 解决方法二: 切换到其他分支,并执行 git pull,全部更新完毕,在切换回原来的分支,再执行git push