Git & GitHub Mastery
From Beginner to Expert β Complete notes, dual-level examples, cheat sheets, and real-world workflows. All in one structured, student-friendly repository.
π Introduction
Welcome to Git & GitHub Mastery! This repository is a complete, self-paced curriculum that takes you from absolute beginner to advanced Git expert.
Git is the most widely used version control system in the world, and GitHub is the largest host of source code. Whether you are a student, a freelancer, or a professional developer, mastering Git & GitHub is a non-negotiable skill.
What makes this course different?
- π’ Beginner Examples β Real-life analogies and simple commands for newcomers.
- π΅ Expert Examples β Professional, team-based scenarios for experienced developers.
- β οΈ Warnings β Common mistakes and how to avoid them.
- π‘ Pro Tips β Insider knowledge and best practices.
- πΊοΈ Visual diagrams β Mermaid and ASCII art to build mental models.
π― Prerequisites
- A computer (Windows, macOS, or Linux) with internet access.
- Basic comfort with the command line / terminal (navigating folders, running commands).
- No prior Git experience required β we start from zero.
- Curiosity and a desire to practice! Git is learned by doing, not just reading.
π οΈ How to Use This Repository
- Start at Part 1 and work your way through the parts in order β each part builds on the previous one.
- Follow along in your terminal. Type every command yourself; muscle memory matters.
- Choose your level per concept. If you are new, read the π’ Beginner example first. If you are experienced, jump to the π΅ Expert example.
- Use the Cheat Sheet when you need a quick command reference.
- Follow the Command Sequence when you want to see the full real-world workflow end to end.
- Each part ends with a "Next Steps" section that links you forward.
ποΈ Table of Contents
| Part | Topic | Level | File |
|---|---|---|---|
| 1 | Introduction to Version Control | π’ β‘ π΅ | part-1-introduction-to-version-control.md |
| 2 | Getting Started with Git | π’ β‘ π΅ | part-2-getting-started-with-git.md |
| 3 | Basic Workflow | π’ β‘ π΅ | part-3-basic-workflow.md |
| 4 | Branching & Merging | π’ β‘ π΅ | part-4-branching-and-merging.md |
| 5 | Introduction to GitHub | π’ β‘ π΅ | part-5-introduction-to-github.md |
| 6 | Collaboration Workflows | π’ β‘ π΅ | part-6-collaboration-workflows.md |
| 7 | Advanced Git | π΅ Expert | part-7-advanced-git.md |
| 8 | Git Internals | π΅ Expert | part-8-git-internals.md |
β‘ Quick Links
| Resource | Purpose | Link |
|---|---|---|
| π Cheat Sheet | Quick reference of the most common Git commands, grouped by category | cheatsheet.md |
| π Command Sequence | The exact order of commands used in a real-world workflow, with explanations | git-commands-sequence.md |
π§ Learning Path Overview
graph LR
A["Part 1: Version Control"] --> B["Part 2: Getting Started"]
B --> C["Part 3: Basic Workflow"]
C --> D["Part 4: Branching & Merging"]
D --> E["Part 5: Intro to GitHub"]
E --> F["Part 6: Collaboration"]
F --> G["Part 7: Advanced Git"]
G --> H["Part 8: Git Internals"]
style G fill:#2a6df4,stroke:#fff,color:#fff
style H fill:#2a6df4,stroke:#fff,color:#fff
Legend: π’ Beginner-friendly Β· π΅ Expert-level Β· β‘ transition
π What Will You Achieve?
By the end of this course, you will be able to:
- β Track and version any project with Git.
- β Use branches and merges confidently β and resolve conflicts like a pro.
- β Push, pull, and clone repositories on GitHub.
- β Collaborate on open-source projects via Pull Requests and code reviews.
- β Rebase, stash, cherry-pick, and recover lost commits.
- β Understand what Git actually is under the hood (objects, trees, commits).
π Repository Structure
Git-Github-Mastery/
βββ README.md # You are here (Master Outline & TOC)
βββ part-1-introduction-to-version-control.md
βββ part-2-getting-started-with-git.md
βββ part-3-basic-workflow.md
βββ part-4-branching-and-merging.md
βββ part-5-introduction-to-github.md
βββ part-6-collaboration-workflows.md
βββ part-7-advanced-git.md
βββ part-8-git-internals.md
βββ cheatsheet.md # Quick command reference
βββ git-commands-sequence.md # Full workflow, command by command
π€ Contributing
Found a typo, an error, or want to add a better example? Feel free to fork this repository, make your changes, and open a Pull Request β you will be practicing exactly what Part 6 teaches!
π License
This project is licensed under the MIT License.
Happy learning β and happy committing! π