git比较本地仓库和远程仓库的差异

转载:https://www.jianshu.com/p/6078a49900a4

  1. 更新本地的远程分支
git fetch origin

2.本地与远程的差集 :(显示远程有而本地没有的commit信息)

git log master..origin/master

3.统计文件的改动

# git diff <local branch> <remote>/<remote branch>
git diff --stat master origin/master


 

猜你喜欢

转载自blog.csdn.net/meng19910117/article/details/84402456