工作目录 vs Git仓库 git diff 工作目录 vs 暂存区 $ git diff <filename> 暂存区 vs Git仓库 git diff --cached <filename> 工作目录 vs Git仓库 git diff <commit> <filename> ref https://www.jianshu.com/p/80542dc3164e