git fetch origin mastergit log -p master..origin/mastergit merge origin/master
git fetch origin master:tmpgit diff tmp git merge tmp
git pull origin master
转Git fetch 和 pull 的区别
原文:http://www.cnblogs.com/scodong/p/4757220.html