AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Git and GitHub: merge conflicts, force-push and the commits that vanished

See when two edits merge cleanly and when they conflict, why a normal push refuses to overwrite a teammate's work and a force-push does not, and how branch protection stops lost commits.

Git makes teamwork on code possible, and it has two moments that surprise beginners: a merge conflict, and a force-push that silently deletes a teammate's work. Both are easy to understand with a small model.

This course models merges and pushes with small Python programs you can run in your browser. Python stands in for Git: the lists are not real repositories, but the rules shown are the ones Git follows. Check the Git and GitHub documentation for the exact commands and for branch protection settings. All 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 experience is assumed. Basic Python helps.

Locked. Sign up free

Learn

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

  1. 01 20 min Free sample 🔒 AiTeky Pass When two edits collide Merge two people's edits to a file line by line, see that changes to different lines combine cleanly, and see exactly when a conflict appears.
  2. 02 20 min 🔒 AiTeky Pass Push and force-push See why a normal push is refused when a teammate pushed first, what a force-push destroys, and how a safer force with a lease protects their work.

Industry ready

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

  1. 03 30 min 🔒 AiTeky Pass On the job: the three days of lost work Force-pushes to the main branch keep deleting teammates' commits. Count the lost hours, compare four fixes by effort and risk, choose, and write the note.

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