Closed zhanhongtao closed 7 years ago
// 工作区 diff 暂存区 git diff <filename> // 当 filename 和 branchname 冲突时 git diff -- <filename> // 工作区 diff 仓库指定版本 git diff <branch> <filename> // 暂存区 diff 仓库 git diff -–cached <filename> git diff --cached <branch> <filename> // 仓库版本之间 diff git diff <ver> <ver> git diff <ver>:<filename> <ver>:<filename>
HEAD HEAD^ HEAD^^ HeAD~{n}
不同位置/版本的 diff
版本快捷方式