Inside Git: Deep Dive Explanation

How it works and role of the .git folder ?