Skip to content
Infra X-Ray
AcademyExplore
Sign inCreate free account
Infra X-Ray

DevOps, simulated in your browser.

  • Academy
  • Explore
  • Roadmap
  • Contact
  • Privacy
  • Terms
All courses

Git: From First Commit to Team Workflows

How Git really stores your work, and how teams use it every day

  • Beginner → Intermediate
  • 5 modules
  • 20 lessons
  • 19 labs
  • 3 h 35 min of reading
  • Final exam: 25 questions, pass mark 70%

Start this course

A free account saves your progress and opens every free lesson, quiz and lab.

Every module free with an account

Create free accountSign in

About this course

Git is easy to use by memorising commands and hard to use when something surprising happens. This course builds the picture underneath: snapshots, commits, branches as pointers, the three places your work lives. Every command then becomes a small operation on that picture. You will set Git up, branch and merge, undo anything safely, work through pull requests with a team, and track down the commit that broke the build. Each lesson explains the idea, checks it with a quiz, then lets you try it in a simulated repository where every object and pointer is drawn as it changes.

What you will be able to do

  • Explain what a commit, a tree and a blob are, and why commit ids cannot be faked
  • Move work between the working directory, the staging area and the repository with confidence
  • Branch, merge, resolve conflicts and tag releases
  • Choose the right undo: restore, reset, revert, stash or the reflog
  • Rebase and cherry-pick, and know when not to
  • Work with remotes and pull requests, and handle rejected pushes without --force
  • Find the commit that introduced a bug with blame and bisect

Syllabus

5 modules. Each lesson is reading, a quiz with a 70% pass mark, and usually a lab. A lesson is done when its quiz is passed and its lab is finished.

Every module free with an account

Foundations

Module 1. 5 lessons, 55 min, 4 labs

Free with an account

What Git stores, how to set it up, and the three places your work lives.

  1. What Git really stores11 min
  2. Setting up: config, init and clone10 min, lab
  3. The three trees12 min, lab
  4. Inspecting: status, diff, log and show12 min, lab
  5. Ignoring, removing and renaming files10 min, lab

Branches

Module 2. 4 lessons, 43 min, a lab in each

Free with an account

Branches as pointers, merging, conflicts, and naming releases with tags.

  1. Branches are pointers; HEAD is you11 min, lab
  2. Merging: fast-forward and three-way12 min, lab
  3. Merge conflicts, calmly11 min, lab
  4. Tags and releases9 min, lab

Undoing and rewriting

Module 3. 6 lessons, 60 min, a lab in each

Free with an account

restore, reset, revert, stash, rebase, cherry-pick and the reflog: choosing the right undo.

  1. restore and reset12 min, lab
  2. revert: undoing published history9 min, lab
  3. stash: putting work aside9 min, lab
  4. rebase, and when to rebase vs merge13 min, lab
  5. cherry-pick: taking one commit8 min, lab
  6. reflog: getting lost commits back9 min, lab

Working with a team

Module 4. 3 lessons, 35 min, a lab in each

Free with an account

Remotes and tracking branches, pull requests and branching models, and recovering from team accidents.

  1. Remotes: fetch, pull and push12 min, lab
  2. Pull requests and branching models12 min, lab
  3. Team accidents: rejected pushes and force11 min, lab

Power tools

Module 5. 2 lessons, 22 min, a lab in each

Free with an account

Finding where a bug came from, and automating checks with hooks and CI.

  1. Finding a bug's origin: blame and bisect12 min, lab
  2. Hooks and automation10 min, lab

Final exam

25 questions, pass mark 70%

Free with an account

Passing it makes the course complete. A failed attempt shows your score only, so you can try again without learning the answers.

  1. Take the final examYour best score is kept

Badge

Not earned yet

Finish every lesson to earn this badge. The exam is not needed for it.

Its finish comes from your average best quiz score: Solid, Great at 90% or more, Perfect at 100%.

Start this course

A free account saves your progress and opens every free lesson, quiz and lab.

Every module free with an account

Create free accountSign in

About this course

Git is easy to use by memorising commands and hard to use when something surprising happens. This course builds the picture underneath: snapshots, commits, branches as pointers, the three places your work lives. Every command then becomes a small operation on that picture. You will set Git up, branch and merge, undo anything safely, work through pull requests with a team, and track down the commit that broke the build. Each lesson explains the idea, checks it with a quiz, then lets you try it in a simulated repository where every object and pointer is drawn as it changes.

What you will be able to do

  • Explain what a commit, a tree and a blob are, and why commit ids cannot be faked
  • Move work between the working directory, the staging area and the repository with confidence
  • Branch, merge, resolve conflicts and tag releases
  • Choose the right undo: restore, reset, revert, stash or the reflog
  • Rebase and cherry-pick, and know when not to
  • Work with remotes and pull requests, and handle rejected pushes without --force
  • Find the commit that introduced a bug with blame and bisect

Syllabus

5 modules. Each lesson is reading, a quiz with a 70% pass mark, and usually a lab. A lesson is done when its quiz is passed and its lab is finished.

Every module free with an account

Foundations

Module 1. 5 lessons, 55 min, 4 labs

Free with an account

What Git stores, how to set it up, and the three places your work lives.

  1. What Git really stores11 min
  2. Setting up: config, init and clone10 min, lab
  3. The three trees12 min, lab
  4. Inspecting: status, diff, log and show12 min, lab
  5. Ignoring, removing and renaming files10 min, lab

Branches

Module 2. 4 lessons, 43 min, a lab in each

Free with an account

Branches as pointers, merging, conflicts, and naming releases with tags.

  1. Branches are pointers; HEAD is you11 min, lab
  2. Merging: fast-forward and three-way12 min, lab
  3. Merge conflicts, calmly11 min, lab
  4. Tags and releases9 min, lab

Undoing and rewriting

Module 3. 6 lessons, 60 min, a lab in each

Free with an account

restore, reset, revert, stash, rebase, cherry-pick and the reflog: choosing the right undo.

  1. restore and reset12 min, lab
  2. revert: undoing published history9 min, lab
  3. stash: putting work aside9 min, lab
  4. rebase, and when to rebase vs merge13 min, lab
  5. cherry-pick: taking one commit8 min, lab
  6. reflog: getting lost commits back9 min, lab

Working with a team

Module 4. 3 lessons, 35 min, a lab in each

Free with an account

Remotes and tracking branches, pull requests and branching models, and recovering from team accidents.

  1. Remotes: fetch, pull and push12 min, lab
  2. Pull requests and branching models12 min, lab
  3. Team accidents: rejected pushes and force11 min, lab

Power tools

Module 5. 2 lessons, 22 min, a lab in each

Free with an account

Finding where a bug came from, and automating checks with hooks and CI.

  1. Finding a bug's origin: blame and bisect12 min, lab
  2. Hooks and automation10 min, lab

Final exam

25 questions, pass mark 70%

Free with an account

Passing it makes the course complete. A failed attempt shows your score only, so you can try again without learning the answers.

  1. Take the final examYour best score is kept

Badge

Not earned yet

Finish every lesson to earn this badge. The exam is not needed for it.

Its finish comes from your average best quiz score: Solid, Great at 90% or more, Perfect at 100%.