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.
我试过
git diff --summary
如 中所述git diff help,但未汇总更改,git diff是否在 5 个不同文件中输出更改。
git diff help
git diff
还有其他方法吗?
输出示例darcs whatsnew --summarize:
darcs whatsnew --summarize
M ./XMonad/Prompt.hs -1 +1 M ./XMonad/Prompt/Shell.hs -1 +1
尝试
git diff --stat
它提供了一个很好的每文件行列表/图表,显示添加和删除的行。