Process Flow - The .git directory structure
Initialize Git Repo
.git directory created
Create subdirectories: objects, refs, info
Create files: HEAD, config, description
Store commits, branches, tags inside .git
Git commands read/write .git contents
This flow shows how the .git directory is created and structured when you initialize a Git repository, and how Git uses it to store all version control data.