DevOps.Academy
CoursesCurriculumInterview prepPricing
◔My learningSign in
DevOps.Academy

Free, hands-on DevOps lessons. Made with care in India.

System status

Learn

All coursesLinux roadmapCurriculumInterview questionsCheat sheetsMy learning

Academy

PricingCertificates

Legal

PrivacyTermsContact

devops.rajeev.pro

course 03 · beginner

Git & GitHub

How teams change code safely: commits, branches, pull requests and a history you can trust.

Start lesson 1 →
Course quiz83 questions to test yourselfInterview questions25 questions with model answersCheat sheetThe whole course on one page, for revision
Level
Beginner
Roadmap
13 stages · 56 topics ↓
Lessons
13 of 13 ready
Done by you
0/13 stages
Before this
Nothing, start here
Course quiz
83 questions →
Certificate
Preview →
before you start

The Git & GitHub roadmap

Everything this course covers, in the order you'll learn it. Open a stage to see why it matters and jump to its lesson.

lesson ready coming soon done by you
  • What is version control?
  • Installing Git
01The basics+Start here

What version control is and how to set Git up properly once.

Lesson 1: Version control, and setting Git up once →
  • git config
  • Local vs global config
  • git init
  • Working directory
  • Staging area
02Repositories+

Understand the three places a change lives before it is saved for good.

Lesson 2: Commits: the working folder, the staging area and history →
  • Commits & messages
  • .gitignore
  • git log
  • Create & rename
  • Switch & checkout
03Branching+

Work on a change without breaking main for everyone else.

Lesson 3: Branches: work on many things without breaking main →
  • Delete branches
  • Merging basics
  • Account & profile
  • Creating repos
04GitHub essentials+

Where your team, your code reviews and your pipelines meet.

Lesson 4: GitHub: your account, repositories, forks and clones →
  • Public vs private
  • Fork vs clone
  • Managing remotes
05Remotes+

Keep your laptop and GitHub in sync without surprises.

Lesson 5: Remotes: push, fetch and pull without surprises →
  • Push & pull
  • Fetch without merge
  • Fast-forward vs merge commit
  • Rebase
06Merge strategies+

Pick the right way to bring work together, and fix conflicts without panic.

Lesson 6: Merge, rebase, squash: combining work, and fixing conflicts →
  • Squash
  • Handling conflicts
  • Cherry-pick
  • Issues & labels
  • Pull requests
07Collaboration+

The day-to-day workflow of a real engineering team.

Lesson 7: Collaboration: issues, pull requests and code review →
  • PRs from forks
  • Code reviews
  • Branch naming
  • git revert
  • git reset (soft, mixed, hard)
08Undoing changes+

Everyone breaks something. Know which undo is safe on a shared branch.

Lesson 8: Undoing changes: revert, reset, stash and reflog →
  • git stash
  • git reflog
  • HEAD & detached HEAD
  • git log options
09History & diffs+

Find out what changed, when, and who to ask.

Lesson 9: History and diffs: find what changed, who changed it, and when it broke →
  • Diff staged & unstaged
  • Diff branches
  • git bisect
  • commit --amend
10Rewriting history+

Clean up before you share. And the rules for when never to.

Lesson 10: Rewriting history: amend, interactive rebase and safe force-pushes →
  • Interactive rebase
  • Force-push safely
  • Annotated tags
  • Pushing tags
11Tags & releases+

Mark exactly what went to production so you can roll back to it.

Lesson 11: Tags and releases: version numbers people can trust →
  • GitHub Releases
  • Semantic versioning
  • Client vs server hooks
  • pre-commit
12Hooks & automation+

Catch mistakes before they leave your laptop, and automate the boring parts.

Lesson 12: Hooks and automation: let Git check your work →
  • GitHub CLI
  • GitHub Actions intro
  • Secret scanning
  • Dependabot
13Security & extras+

Keep secrets out of history and dependencies up to date.

Lesson 13: Security and extras: secrets, Dependabot, LFS, submodules and Pages →
  • Git LFS
  • Submodules
  • GitHub Pages
Course complete · ready for the next one

Stage order follows the community roadmap at roadmap.sh/git-github, trimmed to what DevOps work needs.