问题发生在向远程push代码时:
相信提示信息:
hint: Updates were rejected because the tip of your current branch is behind
原因:
当前分支低于主版本
解决办法:
sudo git push -u origin mfy -f //其中mfy是你的分支名
这样就就能正常提交了,截图:
本文共 231 字,大约阅读时间需要 1 分钟。
问题发生在向远程push代码时:
相信提示信息:
hint: Updates were rejected because the tip of your current branch is behind
原因:
当前分支低于主版本
解决办法:
sudo git push -u origin mfy -f //其中mfy是你的分支名
这样就就能正常提交了,截图:
转载于:https://my.oschina.net/u/2391658/blog/744984