赞
踩
1)Updates were rejected because the tip of your current branch is behind its remote counterpart
2)refusing to merge unrelated histories
1)git pull origin master --allow-unrelated-histories,后面加上--allow-unrelated-histories,把两个不相干的分支进行强行合并,后面再push就可以了
2)使用 “git push -u origin master -f ”命令强制push,这样会使远程修改丢失,尤其是多人协作开发的时候,所以慎用。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。