Git & GitHub Mastery: Workflows & CI/CD

Micro Free Course — 100% Free Learning

All lessons in this module are free to learn. Sign in with Google to save your progress.

1

Real-World Git Workflows

Rebase vs merge (when to use each); interactive rebase (squash, edit, reorder, drop); stash, cherry-pick, reset; resolving merge conflicts with strategies; reflog and recovery from common mistakes.

Module Progress0% Complete
175 min total
15 Lessons
0 Completed

Module Content

Rebase vs Merge

The two ways to integrate changes. When each is better, and the philosophical 'rewrite history vs preserve history' debate. FIND_VIDEO: search 'git rebase vs merge tutorial' — recommended channel: Atlassian / Fireship. Aim for 11 min or under.

10 minVideo
Start

Recap — When to Rebase, When to Merge

The mechanics of rebase, the trade-offs, and team conventions around the choice.

7 minTutorial
Start

Interactive Rebase

Rewrite your branch's history: squash, edit, reorder, drop commits before sharing. The history-cleanup superpower. FIND_VIDEO: search 'git interactive rebase tutorial squash' — recommended channel: Fireship / Atlassian. Aim for 10 min or under.

5 minVideo
Start

Recap — Squash, Edit, Reorder, Drop Commits

Interactive rebase commands and the typical pre-PR cleanup workflow.

7 minTutorial
Start

Scenario 3 — Interactive Rebase Cleanup

Clean up a messy commit history before opening a PR. Squash WIPs, reword messages, drop a bad commit.

36 minAssignment
Start

Drill — Botched-Rebase Recovery

Recover from a force-pushed rebase that dropped commits, using reflog + ORIG_HEAD, and repair the remote ref. Optional interleaved drill after the rebase lessons.

32 minAssignment
Start

Stash, Cherry-pick, Reset

Three utility commands for common situations: temporary save (stash), copy a specific commit (cherry-pick), move pointers (reset). FIND_VIDEO: search 'git stash cherry-pick reset tutorial' — recommended channel: Atlassian / Fireship. Aim for 10 min or under.

7 minVideo
Start

Recap — The 'Oh No' Toolkit

Stash for context-switching, cherry-pick for plucking commits, reset for moving branch pointers. Plus the three reset modes.

7 minTutorial
Start

Resolving Merge Conflicts

The conflict markers, the strategies, and the tools that make resolution easier (mergetool, IDE integrations). FIND_VIDEO: search 'git merge conflict resolution tutorial' — recommended channel: Fireship / Atlassian. Aim for 10 min or under.

8 minVideo
Start

Recap — Conflict Markers and Resolution Strategies

The anatomy of a conflict, the three sections (HEAD, incoming, merged), and how to resolve cleanly.

7 minTutorial
Start

Scenario 2 — Merge Conflict Drill

Practice resolving merge conflicts in a controlled scenario. Multiple conflict types; learn the markers and the flow.

35 minAssignment
Start

Reflog & Recovery

The safety net you didn't know you had. Reflog records every HEAD movement; almost everything is recoverable. FIND_VIDEO: search 'git reflog recovery lost commits' — recommended channel: Atlassian / Fireship. Aim for 9 min or under.

4 minVideo
Start

Recap — Why You Almost Never Lose Work

How reflog works, when it saves you, and the cases where work IS lost (rare).

7 minTutorial
Start

Scenario 4 — Recover Lost Commits with Reflog

Simulate losing commits via reset and rebase, then recover them. Build muscle memory for the safety net.

35 minAssignment
Start

Drill — Detached-HEAD Rescue

Recover a commit made while HEAD was detached using reflog, then recreate the branch. Optional interleaved drill after the reflog lessons.

33 minAssignment
Start
Real-World Git Workflows | Git & GitHub Mastery: Workflows & CI/CD | Topfolio