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

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

 kyle0x54 关注

2017.07.25 19:55* 字数 41 阅读 12953评论 0喜欢 0

  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

小礼

原文地址:https://www.cnblogs.com/grj001/p/12224487.html