What are Insertions & Deletions in Git?

前端 未结 1 1412
一向
一向 2021-02-05 00:17

When I run git commands like git commit or git log --shortstat part of the output looks like:

2 files changed, 3 insertions(+), 11 dele         


        
相关标签:
1条回答
  • 2021-02-05 00:58

    It is just number of lines inserted and number of lines deleted in that particular commit. Note that a modified line maybe treated as an insert and a delete.

    Git log manual:

    --shortstat

    Output only the last line of the --stat format containing total number of modified files, as well as number of added and deleted lines.

    0 讨论(0)
提交回复
热议问题