Complete for freeBeginner to intermediate

Course 8

Git, GitHub, and Collaborative Development

You'll version a real project from the first commit, then put it on GitHub and change it the way working developers do: plan each change as an issue, build it on a branch, open a pull request, review a partner's work with line comments and suggested changes, and merge. Later modules cover resolving merge conflicts without losing anyone's work, writing a README, choosing an open-source license, tagging releases with a changelog, and running automatic checks with GitHub Actions. Lessons show each command with the output it prints, and each idea is also shown in VS Code's Source Control view. The course uses Git, a free GitHub account, and VS Code, all free on Windows, macOS, and Chromebooks with Linux turned on.

Free completion promise: Git, VS Code, and a GitHub account with unlimited public and private repositories are all free, so every lesson can be completed for $0 on a Windows PC, Mac, or Chromebook with Linux turned on.

What's inside

  • 24hand-written lessons
  • 20videos
  • 1step-through animations
  • 28diagrams, charts & live previews
  • 46quiz questions
  • 213code examples

Before you begin

Requirements & setup for Git, GitHub, and Collaborative Development

Start with the complete free pathway below. Hardware, subscriptions, paid APIs, and cloud credits are never required.

Start here · free path

Your complete $0 setup

Git, VS Code, and a GitHub account with unlimited public and private repositories are all free, so every lesson can be completed for $0 on a Windows PC, Mac, or Chromebook with Linux turned on.

$0 required

Setup checklist

0 of 10 complete

This checklist is a temporary setup aid and resets when the page reloads. Saved course progress begins in the setup lessons below.

  1. Everything required for this course is free. Paid software, APIs, cloud credits, GPUs, and physical equipment are optional.

    About 2 min
  2. Install VS Code from code.visualstudio.com.

  3. Install Git from git-scm.com. On a Mac, run git --version in Terminal and accept the developer tools prompt; on a Chromebook, turn on Linux and run sudo apt install git.

    About 5 min
  4. Create a free account at github.com and turn on Keep my email addresses private in Settings > Emails.

    About 5 min
  5. Run git config --global user.name and user.email with your name and GitHub noreply address, then set init.defaultBranch to main and core.editor to code --wait.

    About 5 min
  6. Connect to GitHub with an SSH key, or with Git Credential Manager over HTTPS (built into Git for Windows).

    About 5 min
  7. Every lesson works in Git (free version control) with VS Code and GitHub, so GitHub CLI (gh) is never required.

  8. If you have GitHub CLI (gh), use it where a lesson mentions it and compare your result with the lesson's.

    About 5 min
  9. If it doesn't match, finish that step in Git (free version control) with VS Code and GitHub and keep going.

    About 5 min
  10. Git (free version control) with VS Code and GitHub: git --version in VS Code's terminal prints a version number, cloning github.com/octocat/Spoon-Knife succeeds, and ssh -T git@github.com (or your first push over HTTPS) greets you by your GitHub username. GitHub CLI (gh): git --version in VS Code's terminal prints a version number, cloning github.com/octocat/Spoon-Knife succeeds, and ssh -T git@github.com (or your first push over HTTPS) greets you by your GitHub username.

    About 5 min

Software

1 item

Git (free version control) with VS Code and GitHub

Git records every version of a project on your own computer; GitHub hosts a shared copy and adds pull requests, issues, and reviews; VS Code is the editor, with a built-in terminal and Source Control view. All three are what professional teams use, and all are free.

Course need
Git (free version control) with VS Code and GitHub
Free

Git records every version of a project on your own computer; GitHub hosts a shared copy and adds pull requests, issues, and reviews; VS Code is the editor, with a built-in terminal and Source Control view. All three are what professional teams use, and all are free. Every lesson is readable text with copyable code, keyboard-friendly quizzes and step-throughs, and videos with YouTube captions.

  1. Install VS Code from code.visualstudio.com.
  2. Install Git from git-scm.com. On a Mac, run git --version in Terminal and accept the developer tools prompt; on a Chromebook, turn on Linux and run sudo apt install git.
  3. Create a free account at github.com and turn on Keep my email addresses private in Settings > Emails.
  4. Run git config --global user.name and user.email with your name and GitHub noreply address, then set init.defaultBranch to main and core.editor to code --wait.
  5. Connect to GitHub with an SSH key, or with Git Credential Manager over HTTPS (built into Git for Windows).

Hardware

1 item

GitHub CLI (gh)

Optional; lets you create pull requests and sign in from the terminal. Every lesson can be done with Git and the GitHub website instead.

Optional
Git (free version control) with VS Code and GitHub
Free

Optional. Every lesson can be completed with Git (free version control) with VS Code and GitHub; GitHub CLI (gh) is an extra for learners who have it. Optional equipment: every assessed outcome can be completed without it.

  1. Every lesson works in Git (free version control) with VS Code and GitHub, so GitHub CLI (gh) is never required.
  2. If you have GitHub CLI (gh), use it where a lesson mentions it and compare your result with the lesson's.
  3. If it doesn't match, finish that step in Git (free version control) with VS Code and GitHub and keep going.

Accounts

Nothing required

No external account is needed for this course.

What you will be able to do

Learning outcomes

  • Record a project's history in focused commits with clear messages, and use status, diff, log, .gitignore, and restore to inspect and undo changes.
  • Develop features on branches and explain when a merge fast-forwards and when it creates a merge commit.
  • Push to GitHub, open and update pull requests, and merge them so linked issues close automatically.
  • Plan work with issues, labels, and project boards, and give and answer code reviews with line comments and suggested changes.
  • Resolve merge conflicts while keeping both contributors' intentions.
  • Document, license, release, and automatically check a shared project with a README, a license, tags, a changelog, and GitHub Actions.

Build real work

Assignments & capstone

Free tools accepted

Club website through a pull request

Build a small website in a Git repository with a .gitignore and focused commits that say what and why, then push it to GitHub, add a page on a branch, open a pull request, review it yourself, and merge.

Git, VS Code, and a GitHub account with unlimited public and private repositories are all free, so every lesson can be completed for $0 on a Windows PC, Mac, or Chromebook with Linux turned on. Submit your project file, or screenshots with descriptions, or a short demo.

Reviewed change and a resolved conflict

Take a change from a labeled GitHub issue to a reviewed, merged pull request that closes it, then resolve a merge conflict in VS Code's merge editor so both sides survive, and record the choice in a decision record.

Git, VS Code, and a GitHub account with unlimited public and private repositories are all free, so every lesson can be completed for $0 on a Windows PC, Mac, or Chromebook with Linux turned on. Submit your project file, or screenshots with descriptions, or a short demo.

Final assessment

Safe open-source contribution

Take one change from a GitHub issue to a merged pull request, on a fork or your own repo: focused commits, a PR that links the issue and explains testing, replies to review, a sync with main, updated docs, and a passing automated check. Deliverables: Link to the merged pull request (or screenshots), git log --oneline --graph output for your branch, Green automated check on the final commit, Written reflection, and Three-minute presentation.

Prerequisites & pacing

Skills assumed

  • A small text or code project you'd like to version, or willingness to build the course's small website
  • Comfort creating folders and saving files on your computer
  • Age 13 or older for a GitHub account (younger learners can do the local Git lessons)

Recommended prior courses

These are advisory, not locks. If you already have the skills listed above, enroll directly.

Choose your pace

  • self paced: 7 weeks at 3 hours per week
  • weekly: 7 weeks at 3 hours per week

Part of these learning paths

  • 🌐 Web and Software Development · step 3 of 4

    Build accessible websites, add interactivity, collaborate with Git, and back it all with an API.

  • 🛠️ Agentic Systems · step 1 of 5

    Build tool-using AI agents that are auditable, permission-bounded, and evaluated against adversaries.

Course created by Zafir Shamsi.