search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

2 answers
Q&A As a result of git diff --stat, what do the numbers and plus and minus signs after the file name mean?

0

As shown below

Does the number represent how many rows have been changed? I took a look and it seems not. .

Your Answer
submit

2 answers
0

+- numbers in front of each number correspond to a current file;
+ number: indicates the code line added to the current file;
- number: indicates the code line deleted from the current file;

2017-07-03 11:43:19

submit

0

The number of lines of code added or deleted in the file.

Pay attention to the last line: 6 files changed, 33 insertions(+), 42 deletions(-).
6 files were changed, 33 lines were added and 42 lines were deleted, which adds up to the total number of lines changed in all the files above.

The +- numbers after each file can let people see at a glance the proportion of added and deleted code in the file.

If you run git diff --numstat, the first two numbers represent the added and deleted lines respectively:

2017-07-03 11:43:19

submit

Popular tool

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use