Earn it: GitHub Achievements Academy home

Lesson 0: Setup

This lesson gets you from nothing to ready in about 20 minutes. If you already use Git and GitHub, skim the checklist at the end. Most "I did it but got no badge" problems come down to step 3.

1. Git and GitHub are two different things

ComparedGitGitHub
What it isA program on your computer that tracks changes to filesA website that hosts Git repositories online
What it doesSaves snapshots (commits), branches, mergesShares your work, and adds pull requests, issues, reviews, Actions and Pages
Works offline?YesNo

You use Git to record your work, and GitHub to share it and collaborate. A repository (repo) is one project's folder plus its full history. Git 1 explains how Git works inside.

2. Choose how you'll work

You can do every badge lesson in this course in any of these. Pick the one that feels comfortable. You can switch later.

OptionGood forGet it
The github.com website onlyTotal beginners, Chromebooks, locked-down work laptopsNothing to install. Every lesson has "on github.com" steps
GitHub DesktopPeople who prefer buttons to commandsdesktop.github.com
VS Code with its built-in Git panelPeople who already write code in an editorcode.visualstudio.com
The command line (git and gh)Learning Git properly. The Git fundamentals track uses itSee step 4

On any repo page on github.com, press the . (full stop) key to open it in a browser version of VS Code (github.dev). No install is needed, which is handy for quick edits.

  1. Sign up at github.com if you haven't, and turn on two-factor authentication (Settings → Password and authentication). GitHub 6 explains why.
  2. Go to Settings → Emails and tick Keep my email addresses private. GitHub shows you a private no-reply address like ID+username@users.noreply.github.com.

GitHub credits a commit to you by matching its author email to a verified email on your account. If you use the command line, Desktop or VS Code, tell Git who you are (use your no-reply address to keep your real email private):

git config --global user.name  "Your Name"
git config --global user.email "ID+username@users.noreply.github.com"
git config --global user.email          # print it to double-check

GitHub Desktop does this for you when you sign in (Settings → Git). Commits you make on github.com are always linked correctly.

4. Command-line route: install Git and the GitHub CLI

Skip this step if you're using only the website or GitHub Desktop.

Install Git

SystemHow
WindowsInstall Git for Windows. It includes Git Bash, a terminal where every command in this course works
macOSOpen Terminal and run git --version. If Git isn't installed, macOS offers to install it. Or use Homebrew: brew install git
LinuxUse your package manager, for example sudo apt install git (Debian/Ubuntu) or sudo dnf install git (Fedora)

Check it worked with git --version.

Install the GitHub CLI and sign in

# macOS
brew install gh
# Windows
winget install --id GitHub.cli
# Linux: see https://github.com/cli/cli#installation

gh auth login        # choose GitHub.com, then HTTPS, then log in with a web browser

gh auth login also sets up Git to push to GitHub without asking for passwords.

Terminal basics in one minute

CommandWhat it does
pwdShows which folder you're in
ls (or dir in Windows Command Prompt)Lists the files here
cd folder-nameMoves into a folder
cd ..Moves up one folder
mkdir nameMakes a new folder
Up arrowBrings back your last command
TabCompletes file and folder names

Commands in this course are typed one line at a time. Lines starting with # are comments: you don't type them.

5. Decide about private contributions

By default, only public activity shows on your profile. If much of your work is in private repos:

Settings → Public profile → Contributions & activity

  • Include private contributions on my profile
  • Show private contributions & achievements (wording may vary)

Private activity shows as anonymous counts. Nobody sees the private repo names.

6. Make a sandbox repo

Lessons 1 and 2 happen in your own repo, so you never create noise in anyone else's project.

On github.com: click + → New repository, name it my-github-sandbox, choose Public, tick Add a README file, and click Create repository.

With the CLI:

gh repo create my-github-sandbox --public --add-readme --clone
cd my-github-sandbox

7. Make sure achievements are visible

Settings → Public profile → Achievements: make sure they aren't hidden.

Checklist

Using the command line? Run ./scripts/coach.sh doctor from a clone of this repo to check your Git identity and GitHub login automatically.

Next: Lesson 1: Quickdraw. Brand new to Git? Do Git 1 and Git 2 first. They're short and make everything else easier.

Check what you learned

1. Why might your commits not count toward achievements?
2. What's the privacy-friendly email to use for commits?
3. Where do lessons 1 and 2 happen?

Show the answers
  1. Your commit email isn't a verified email on your GitHub account: GitHub links commits to you by matching the author email to a verified email (or your no-reply address).
  2. Your GitHub no-reply address: The ID+username@users.noreply.github.com address keeps your real email private and still counts.
  3. In a sandbox repo you own: Practicing in your own repo means you never create noise in anyone else's project.

Your progress is saved in this browser only.

Last reviewed November 2026. Improve this page on GitHub. Every fix you send counts toward Pull Shark.