1 - 工作区 2 - 暂存区 3 - 本地仓库
比较 1 和 2
git diff
比较2和3
git diff --cached
比较1和3
git diff HEAD (前提是HEAD指向最近一次的commit)
git diff 各种比较
最新推荐文章于 2024-08-24 22:26:52 发布
1 - 工作区 2 - 暂存区 3 - 本地仓库
比较 1 和 2
git diff
比较2和3
git diff --cached
比较1和3
git diff HEAD (前提是HEAD指向最近一次的commit)