ArticleGit命令diff本页总览diff2024年04月27日柏拉文越努力,越幸运 一、git diff git diff 命令比较文件的不同,即比较文件在暂存区和工作区的差异。显示已写入暂存区和已经被修改但尚未写入暂存区文件的区别。 二、git diff HEAD 三、git diff --stat 四、git diff --cached 五、git diff [filename]