兩個提交或分支之間的區別

檢視兩個分支之間的區別

git diff <branch1>..<branch2>

檢視兩個分支之間的區別

git diff <commitId1>..<commitId2>

使用當前分支檢視差異

git diff <branch/commitId>

檢視更改摘要

git diff --stat <branch/commitId>

檢視在某次提交後更改的檔案

git diff --name-only <commitId>

檢視與分支不同的檔案

git diff --name-only <branchName>

在特定提交後檢視資料夾中更改的檔案

git diff --name-only <commitId> <folder_path>