Intern Track Roadmap

Git remotes: push & pull

This course covers working with Git remotes, using GitHub as the host. It starts with what a remote is and how push and pull move commits between your machine and a server. You set up SSH key authentication, connect an existing repository with git remote add, and send commits with git push and branch tracking. It then covers git clone, the difference between git fetch and git pull, and safe overwriting with --force-with-lease. The last lesson pushes a Rails app to GitHub and runs a full round trip.

What you'll learn

  • ✓How remotes, push and pull relate, and how GitHub differs from Git
  • ✓Setting up SSH key authentication with GitHub
  • ✓Connecting and managing remotes with git remote
  • ✓Pushing commits, tracking branches and overwriting safely with --force-with-lease
  • ✓Starting from a remote with git clone
  • ✓Inspecting incoming changes with git fetch before running git pull
Free preview · Lesson 1 3 min read

Why remotes change everything

Every commit, branch, and undo trick from the last two courses happened entirely on your laptop. That is a complete, working version control system, and also, on its own, a single point of failure. Spill coffee on that laptop and every commit you ever made disappears with it. Worse: nobody else can…

Read the full lesson free →

Curriculum

7 lessons
Type to start searching...