Git中从远程分支获取最新更新[1]
2016-03-25 本文已影响982人
1Z实验室阿凯
Step 1:查看远程仓库
git remote -v

Step 2: 从远程获取最新版本到本地
git fetch origin master

Step 3:对比本地仓库和远程的区别
git log -p master.. origin/master

Step 4 :把从远程下载下来的代码合并到本地仓库,远程和本地的合并
git merge origin/master
