Help us understand the problem. What is going on with this article?

git log を使って履歴を検索したい

More than 1 year has passed since last update.

適宜追加する

対象ファイルに関して検索する

git log -- path/of/the/file

もしくは

git log -p path/of/the/file

コンパクトに

git log --word-diff -p path/of/the/file

authorでフィルタ

git log --word-diff --author tanaka -p path/of/the/file

対象ディレクトリでもOK

git log -- path/of/the/directory/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away