我已经在 Git 中安装了Meld作为差异工具。是否可以使用 Git 或任何其他方式比较两个文件夹?我尝试了以下命令,但没有任何反应。
git diff /c/sample/folder1/ /c/sample/folder2/
Run Code Online (Sandbox Code Playgroud)
如果要比较磁盘上的两个目录,则无需git:
# use any suitable diff viewer : meld, kdiff3 ...
meld /c/sample/folder1/ /c/sample/folder2/
Run Code Online (Sandbox Code Playgroud)
如果您想查看 git 中两次提交之间的差异的目录视图:
git difftool -d <commit1> <commit2>
# you can also restrict this directory view to a subdir of your repo :
git difftool -d <commit1> <commit2> -- lib/
Run Code Online (Sandbox Code Playgroud)