AITeky Learn

AiTeky Original Interactive Learning & Practice Beginner

Git and GitHub: snapshots, branches, merges and team workflow

Build a tiny Git in Python to see that a commit is a labelled snapshot pointing at its parent, merge two branches line by line and meet a real conflict, and compare branching strategies for a team by conflicts and waiting time.

Git is how almost every team keeps track of code: who changed what, when, and why, and how two people can work at the same time without overwriting each other. Most people learn Git as a list of commands to memorise, which is why it feels fragile. This course takes the opposite route: you build a very small Git in Python, so the commands become obvious consequences of how it stores things.

The programs here are teaching models, not the real Git. When you meet the real commands (commit, branch, merge, rebase), you will know what they are doing underneath. All files and names are made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

No Git knowledge is assumed. Basic Python helps.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 00 25 min πŸ”’ AiTeky Pass Start here: Git keeps snapshots, not edits Learn the picture that makes Git make sense: a history of labelled snapshots, each pointing to the one before, with a branch as nothing more than a movable label.
  2. 01 30 min Free sample πŸ”’ AiTeky Pass Commits are labelled snapshots Build a tiny Git where a commit stores a complete snapshot, a message and the id of its parent, identified by a fingerprint of its content, then see that a branch is just a name pointing at a commit, and that history is a chain you can walk backwards.
  3. 02 30 min πŸ”’ AiTeky Pass Merging and conflicts: the three-way rule Merge two versions of a file by comparing each with their common ancestor, see that a change made on only one side is taken without fuss and a change to the same line on both sides is a conflict that a person must settle, and learn to read and resolve conflict markers.
  4. 03 30 min πŸ”’ AiTeky Pass Bisect, and the shape of history: merge versus rebase Find the commit that introduced a bug among 200 commits in about eight tests with a binary search (git bisect), and compare a merge commit with a rebase by the history each leaves, so you know which to choose and why rebasing a shared branch is dangerous.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 04 35 min πŸ”’ AiTeky Pass On the job: choosing a branching strategy for a team of eight A team of eight merges code daily and spends Fridays fixing conflicts. Simulate 40 working days under three strategies (daily merges, ten-day feature branches, a long release branch), count the conflicts and the waiting time, choose one, and write the proposal for the tech lead.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in