Commits like 1local: xxx -> some commit2remote: xxx -> yyy -> zzz Now, git pull locally is not valid. What to do? Well you should git rebase, it rebases automatically