Git diff --stat explanation

后端 未结 3 529
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-05 13:04

Git\'s pull output has been explained here fairly well. In spite of this I\'m still unsure exactly what the text graph relates to.

For example:

git di

3条回答
  •  再見小時候
    2020-12-05 13:33

    git diff --numstat "@{1 day ago}"
    

    Parameters:

    • diff = Show diff
    • --numstat = show the number of lines inserted and removed
    • @{1 day ago} = Period.

    Output

    0   1   WebContent/WEB-INF/tags/Grid.tag
    38  30  ant/build.xml
    
    • Column 1 (containing 0 38) = inserted
    • Column 2 (containing 1 30) = removed

    PS: Columns are separated by tab (\t).

提交回复
热议问题