copy from https://www.cnblogs.com/kevingrace/p/5896706.html
git pull = git fetch && git merge
git pull --rebase = git fetch && git rebase

step1

step2
C的基础上开发到D
小明在C的基础上开发到E
这个时候要把E合并到origin
两种办法:
1 git pull

mehtod1
2 git pull --rebase origin master

method2
如果有冲突, 解决冲突
git add .
不需要commit
git rebase --continue
git push 到远端