Why does the commit of git have different comments between the folder outside and the files inside?

problem description

Why does the commit of git have different comments between the folder outside and the files inside? I already know that if different files have different comments, then one commit, then how can the folders outside them have different comments? Do you add all the files in it first, and then add the whole folder again?

the platform version of the problem and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Git
Sep.21,2021
The commit information displayed in the

folder is the commit information of the latest submitted file in the folder
the commit information of the folder should be automatically generated

Menu