1. 程式人生 > >git比較本地倉庫和遠端倉庫的差異

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