如何在结果输出中使用修订信息运行git diff

时间:2018-02-05 11:58:41

标签: git blame git-blame

我需要获得git diff输出,预计每行都有修订信息,即

$ git diff f08cbec42b80725e7840ae3d05f790f6fa9daa8e..cbe1c77ad85c58be93964bd8b8fb624f654b7670
    diff --git a/.gitignore b/.gitignore
    index a54324ff7a..164c5fcfab 100644
    --- a/.gitignore
    +++ b/.gitignore
    @@ -9,6 +9,7 @@
                   */target
                   /build
                   */build
    Vasya.Pupkin: +testdb

其实我只需要作者姓名

1 个答案:

答案 0 :(得分:0)

您需要git log -pgit annotategit blame