my-git

Git Learning Path

English 中文

Git is not suitable for learning by memorizing commands.

A more effective way is to build capabilities based on real work scenarios.

Phase 1: Establishing a Mental Model

First, understand the four areas:

working tree -> index -> local repository -> remote repository

Recommended reading:

  1. Git Mental Model
  2. Snapshots and State: HEAD, Index, and Working Tree
  3. The Object Graph: Blobs, Trees, and Commits
  4. The Index Is the Next Commit Draft
  5. Git Basic Commands
  6. Why Use Git

Mastery Goals:

Phase 2: Daily Development

Recommended reading:

  1. Everyday Git Commands
  2. Branch and Merge
  3. Rebase vs Merge
  4. Stash

Mastery Goals:

Phase 3: Team Collaboration

Recommended reading:

  1. Team Git Workflow Guide
  2. Pull Request Best Practices
  3. Code Review Best Practices

Mastery Goals:

Phase 4: Troubleshooting and Recovery

Recommended reading:

  1. Git Troubleshooting Playbook
  2. Undo Anything
  3. Recover Lost Commit

Mastery Goals:

Phase 5: Git in the AI Programming Era

Recommended reading:

  1. AI Native Git Workflow
  2. AI Generated Code Review
  3. Worktree for AI Agents

Mastery Goals:

Extended Reading