Tutorial 02
Beginner

Git, GitHub & GitHub Copilot

From never typing 'git' to understanding Git's internals, GitHub collaboration, and how GitHub Copilot's skills, custom instructions, context window, and memory actually work.

Git, GitHub & GitHub Copilot — From Zero to Mastery

A complete, plain-language tutorial that takes you from never having used version control to understanding the deepest internals of Git, GitHub, and GitHub Copilot — including how Copilot’s skills, custom instructions, context window, and memory actually work under the hood.


Who this is for

  • Complete beginners who have never typed git in their life.
  • Working developers who use Git daily but never understood what lives inside the .git folder.
  • Anyone using GitHub Copilot who wants to know how it decides which skill to load, how it manages context, and how its memory works.

You do not need any prior knowledge. Every term is explained the first time it appears, and there is a full glossary at the end.


How this tutorial is structured

The tutorial is split into 15 modules, each in its own file inside the modules/ folder. They are ordered so each builds on the last, but the headings are self-contained enough that you can jump around once you know the basics.

The journey has three big parts:

  1. Part A — Git foundations (Modules 1–5): what version control is, installing Git, your first repository, and the single most important chapter: what Git actually writes inside the .git folder.
  2. Part B — GitHub & collaboration (Modules 6–9): remotes, pull requests, issues, undoing mistakes, and advanced day-to-day Git.
  3. Part C — GitHub Copilot internals (Modules 10–14): Copilot itself, custom instructions, how skills work and how Copilot decides which skill file to load, how it manages context and memory, and a mastery workflow that ties everything together.
  4. Part D — Safety & security (Module 15): keeping your code, credentials, and AI workflow safe across Git, GitHub, and Copilot.

The modules

#ModuleWhat you’ll learn
01What Version Control Really IsThe problem Git solves, snapshots vs. diffs, why Git is “distributed”
02Installing & Configuring GitInstall on every OS, identity, SSH keys, the global config
03Your First Repositoryinit, the three areas, add, commit, status, log, diff
04Inside the .git FolderEvery file and folder Git creates, and what each one does
05Branching, Merging & RebasingBranches as pointers, merge vs. rebase, conflicts
06Remotes & GitHubclone, push, pull, fetch, what GitHub adds on top of Git
07Collaboration: PRs, Issues & ReviewsForks, pull requests, code review, GitHub Actions basics
08Undoing Things & Recoveryreset, revert, restore, the reflog safety net
09Advanced GitStash, cherry-pick, bisect, hooks, submodules, .gitignore
10Meet GitHub CopilotCompletions vs. chat vs. agent mode, plans, where it runs
11Customizing Copilot: Instructions & Prompt FilesThe 5 customization layers and how they merge
12Copilot Skills: How They WorkSKILL.md, frontmatter, and how Copilot decides which skill to load
13Context & MemoryThe context window, compaction, and Copilot’s memory system
14Mastery: Putting It All TogetherA professional workflow combining Git + Copilot
15Safety & SecuritySecrets, signing, branch protection, scanning, and Copilot security

How to use it

  • Read in order if you’re new. Each module ends with a short “Try it yourself” section — actually run the commands. Reading Git without typing it is like reading about swimming.
  • Use the glossary whenever a word feels unfamiliar. Terms are linked back to where they’re explained.
  • Commands are shown in code blocks. Lines starting with # are comments (you don’t type them). Output is shown when it helps.

A note on accuracy: Git’s behavior is extremely stable and rarely changes. GitHub Copilot, by contrast, evolves quickly — the file names, frontmatter fields, and memory behavior described in Part C reflect how Copilot works as of mid-2026. Always cross-check the official Copilot docs for the newest details. Source links are included at the bottom of the Copilot modules.


A 60-second mental model before you start

Three ideas carry you through the whole tutorial:

  1. Git is a database of snapshots. Every time you “commit,” Git takes a photograph of your whole project and stores it forever, addressed by a unique fingerprint (a hash). Nothing is ever really lost.
  2. GitHub is a place to host that database and collaborate around it. Git works perfectly offline and alone; GitHub adds the social layer — sharing, reviewing, automating.
  3. Copilot is an AI teammate that reads your code and your instructions. It has a limited “working memory” (the context window), it pulls in extra knowledge on demand (skills), and it keeps notes between sessions (memory). Understanding those three mechanisms is what separates casual users from power users.

Turn to Module 01 when you’re ready.