比较工作区和暂存区 git diff 比较两个版本(快照) git diff ID1 ID2 比较工作区和仓库版本 git diff ID 比较暂存区和仓库版本 git diff --cached <ID>