hint: Updates were rejected because the tip of your current branch is behind hint: its remote counte
比如:新建远程仓库时,新建了README.md文件,但是本地代码初次提交时无该文件,提交时,git则认为两者是完全不相关的分支,提交会报上述错误。解决方案一,git push -f -u origin master 强推至远程服务器上述方式会强制删除远程仓库中冲突代码,即删除创建的README.md文件,不推荐解决方案二,git pull origin master --allow-unr...
原创
2019-11-11 15:16:33 ·
342 阅读 ·
0 评论