Module · 5 lessons

GitHub and Remotes

Put your work online with GitHub — create a repository, connect your local repo to a remote, and sync with push, fetch, and pull.

At a glance

Level
Beginner to Intermediate
Lessons
5 lessons
Time to complete
1 week
Cost
Free forever · no sign-up

Welcome to GitHub and Remotes, the fourth module of the course — where your work leaves your laptop and goes online. Everything so far has been local: commits, branches, and history living only on your machine. A remote is a copy of your repository hosted elsewhere, and GitHub is by far the most popular place to host one. Putting your repo on GitHub backs it up, makes it shareable, and is the first step toward collaborating with other people.

You’ll learn what GitHub is and how to create a repository, then connect your local repo to a remote with git remote and publish it with git push. You’ll learn the two ways to authenticate — HTTPS and SSH — and how to keep local and remote in sync: git fetch to download changes, git pull to download and merge, and how remote-tracking branches like origin/main let Git show you when you’re ahead or behind. The module ends with a guided project: publishing SkyLog to GitHub for real.

Every Git command here was run for real against a remote, with output shown exactly as Git produced it. Start with Lesson 1, where you’ll learn what GitHub is and create your first repository.

Lessons in this module

Achievement

Complete all 5 lessons to finish the GitHub and Remotes module.

Start module