Skip to content

如何对比当前工作目录和某个commit的代码差异

安装 Gitlens 插件和 Git History 插件,开启 Repositories,开启 Compare Changes(如果关闭了的话)

打开 Git History 找到对应的 commit,复制 hash 值。

打开 Repositories 点击 Compare Changes,输入 hash 值,回车。

就可以看到当前工作目录和这个 commit 的代码差异了。

tips: Repositories开启查看文件按tree展开。

Released under the ISC License.