git diff、git diff --cached、git d 2018-09-26 本文已影响207人 McDu git diff : 对比工作区(未 git add)和暂存区(git add 之后) git diff --cached: 对比暂存区(git add 之后)和版本库(git commit 之后) git diff HEAD: 对比工作区(未 git add)和版本库(git commit 之后)