使用Git提交服务器代码冲突解决
一、情景一:
git pull origin develop 后报:Your branch and 'origin/develop' have diverged, and have 2 and 1 different commit each, respectively.
解决方法如下三步:
(1) git rebase origin/develop
(2)git pull origin develop --rebase
(3) git push origin develop