1. 查看远程仓库 $ git remote -v2.从远程获取最新代码到本地 $ git fetch origin master3.比较代码 $ git log -p master.. origin/master4.合并代码 $ git merge origin/master