Git says "1 file changed, 0 insertions(+), 0 deletions(-)"

I just created an HTML file that has 9 lines on my repository and I used "git commit -m" command but git said, "1 file changed, 0 insertions(+), 0 deletions(-)".

I expected the output of "1 file changed, 9 insertions(+), 0 deletions(-)" because I created a file that has 9 lines.


Before committing a new file, you need to add it to the "index" with

git add <filename>