by shigemk2

当面は技術的なことしか書かない

Gitで既に削除したファイルのコミットログを確認したい

git log -p -- delete_test.txt
man git-log

には以下のように書いてあって、

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.

これはつまり、-- 以下に一致するファイルのコミットログを表示するから、削除したファイルも表示される っていうことなのか。なんだろう、どうしてかわからないけど、なんか違う気がする。つまり専用オプションは存在しないのか。