166

フォルダ内のすべてのファイルのgitログ履歴を表示するにはどうすればよいですか?

特定のファイルのログを表示する方法に関するいくつかの投稿を見つけましたが、特定のフォルダーについては見つかりませんでした。

4

2 に答える 2

223

foldernameまたはを使用できますfoldername/*。どちらの方法でも機能するはずです。

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

名前が変更されたファイルの履歴は、この方法では追跡されません。

--これもオプションであることに注意してください。(gitログマニュアルから)

[--] <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.
于 2012-08-14T10:18:38.947 に答える
65

gitkなどのグラフィックツールを使用する場合も、同じように機能します。

gitk -- path/to/folder
于 2013-11-14T17:33:27.410 に答える