Inside Git: How it works and the role of the .git Folder

I’ve explored basic Git commands in my last blog. After learning those commands, I wonder how Git actually works internally?