Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有两个文件夹 A 和 B 是版本控制源代码(即 Git 或 SVN)的两个工作空间,它们具有相同的 repo 版本或非常接近的版本。工作区文件很多,直接用kdiff3等软件比较两个文件夹需要很长时间。
使用 git status 很容易生成文件夹 A 和 B 的更改文件列表。kdiff3 或类似软件可以比较列表中的文件只是为了加快比较过程吗?或者有没有其他快速的方法来加快 A 和 B 之间的比较,或者保持它们同步。
只需使用常规diff,如有必要--exclude=.git/
diff
--exclude=.git/