查看文件夹的git历史记录

xam8gpfp  于 11个月前  发布在  Git
关注(0)|答案(2)|浏览(107)

如何查看文件夹中所有文件的git日志历史记录?
我已经找到了几个关于如何显示特定文件的日志的帖子,但还没有找到特定文件夹。

qhhrdooz

qhhrdooz1#

您可以使用foldername'foldername/*'

git log -- path/to/folder
git log -- 'path/to/folder/*'

字符串
此方法不会跟踪重命名文件的历史记录。
请注意,--也是可选的。从git help log开始:

[--] <path>...

           Show only commits that are enough to explain how the files that match the specified paths came to be. See History Simplification below for
           details and other simplification modes.

           Paths may need to be prefixed with -- to separate them from options or the revision range, when confusion arises.

xwmevbvl

xwmevbvl2#

如果你想使用图形工具,比如gitk,它的工作原理是一样的:

gitk -- path/to/folder

字符串

相关问题