Git Ready
誰がいつ変更したか調べる - git blame の使い方・オプション・サンプル

誰がいつ変更したか調べる- git blame

各行の最終変更者とコミット情報を表示します。

概念図

git blame diagram

構文

bash
git blame [options] [<rev>] [--] <file>

使用例

基本的な blame 表示

bash
git blame file.txt

行範囲を指定して表示

bash
git blame -L 10,20 file.txt

メールアドレス付きで表示

bash
git blame -e file.txt

空白の変更を無視

bash
git blame -w file.txt

関連コマンド