I was going through the internal of how git works. I was reading that git stores everything in objects folder. It first make SHA1 hash of file and stores it in Object folder. I tried the following commands on 1 of my repository, but i couldn't find the hash file in the objects directory but using cat-file command, i am able to see the command. Is there something i am missing. Below are the steps are i did to understand.
I did git log to find the latest commit,
then i cat-file the mentioned commit id and can see the hash of tree file.
If i go to objects folder and search for the folder with 1st two characters of the hash, i am not able to find the folder.
But still i am able to get the file.
I tried it for files (blob) also from the cat-file of tree, but couldn't find the files with hash in objects folder. Can anyone help me understand why?



