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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37d9a-2b843.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37d9a-2b843.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?