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 log,以类似 diff 的方式显示对文件的更改?
例如
git log Foo/Bar.config
你可以试试:
git log -p -- afile
从git log 手册页:
-p -u --patch
生成补丁(参见生成补丁部分)。