240
208

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Git blameを使って効率の良い犯人探し(w

Last updated at Posted at 2013-05-16

リリース後にバグが発生!!
誰の修正が原因なのか、

見つけた!
「hoge.txt」ファイルの修正が原因っぽい。

でも、そこはAさんと、Bさんの修正が混ざってるけど。

そんなときに以下のコマンドを実行!

git blame ファイル名

すると、

7b64c3aX (Asan 2013-03-08 09:31:18 +0900 51) def hoge
7b64c3aX (Bsan 2013-03-08 09:31:18 +0900 51) p hogehoge
7b64c3aX (Bsan 2013-03-08 09:31:18 +0900 51) p bug
7b64c3aX (Asan 2013-03-08 09:31:18 +0900 58) end

行ごとにコミッターの名前が表示されました。

「あっ、Bさんの修正が原因だ!」

となり、

Bさんに修正依頼をして

無事に解決。

めでたし、めでたし。

240
208
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
240
208

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?