フォルダ内のすべてのファイルのgitログ履歴を表示するにはどうすればよいですか?
特定のファイルのログを表示する方法に関するいくつかの投稿を見つけましたが、特定のフォルダーについては見つかりませんでした。
フォルダ内のすべてのファイルのgitログ履歴を表示するにはどうすればよいですか?
特定のファイルのログを表示する方法に関するいくつかの投稿を見つけましたが、特定のフォルダーについては見つかりませんでした。
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.
gitkなどのグラフィックツールを使用する場合も、同じように機能します。
gitk -- path/to/folder