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-unrelated-histories
此种方式表示可将两个完全不相干的分支合并,出现上述问题时,可通过此种方式解决