Version Control

Git

What Git is and how it works: commits save versions, reset jumps back, branches let you try ideas safely, merges join them, and GitHub shares your repo.

  • 7 min read
  • 5 questions
  • +35 XP
Transcript

Git explained by cats. Two kitties write code. Kitty finishes feature, Kitty happy. Happy Kitty runs Git commit. Commit is a snapshot, a dot on the timeline. Second Kitty wants a new feature, creates a branch, a new path on the timeline.

Second Kitty, finish feature. Kitty use Git merge, path joined together. Want to share code? That's GitHub, a shared home for Git timelines. Push up, pull down, everyone stays in sync. Git is the tool. GitHub is the platform, not the same, but they work together.