0
I understood that git add
creates the hash of the changed files in the project and adds this hash as a reference to staging. In the git commit
it creates a hash for all project files, saves as a Tree and creates a commit object with this Tree hash, the previous commit hash, etc. However, at no time does it reference edited files.
How Git knows which files have been edited into a commit?
maybe help https:/shalithasuranga.medium.com/how-does-git-work-internally-7c36dcb1f2cf
– gmsantos