Git更新本地仓库

1.查看远程仓库
git remote -v
2.从远程获取最新版本到本地
git fetch origin master:temp
3.比较本地的仓库与远程仓库的区别
git diff temp
4.合并temp分支到master分支
git merge temp
5.可删除分支
git branch -d temp

原文地址:https://www.cnblogs.com/winstonet/p/6916111.html