Git Basics#

What is Git?#

  • Distributed version control system

  • Tracks changes at the file content level

  • Works locally (network not needed for most operations)

  • Synchronizes with remote repositories

Key Building Blocks#

Commits

📸 Snapshots of project state

Unique identifier (hash)

Branches

🌿 Parallel development lines

Lightweight pointers to commits

Tags

🏷️ Named milestones

Mark important versions

The Commit Graph#

  • Commits form a directed acyclic graph (DAG)

  • Branches are just labels pointing to commits

  • History shows who changed what, when, and why

Remember

Git tracks changes, not just files. This makes it powerful for understanding project evolution.