Course

Git & GitHub

Git is the tool that removes "it worked better yesterday" from your life. Record your changes, return to any earlier state, and put your work on GitHub for the world to see. The commands are nothing to fear — we learn them one meaning at a time.

Start learning

What is Git, and how is it different from GitHub?

Git & GitHub · Lesson 1 / 8

Getting to know Git2 lessons

  1. 01What is Git, and how is it different from GitHub?
  2. 02Install Git and set it upgit --versiongit config

Your first commit3 lessons

  1. 03Your first commitgit initgit statusgit addgit commit
  2. 04.gitignore — deciding what not to record.gitignoregit rm --cached
  3. 05Undoing mistakesgit restoregit restore --stagedgit commit --amendgit revert

Putting it on GitHub2 lessons

  1. 06Putting it on GitHub — from account to pushgit remote addgit push -ugit push
  2. 07Publishing with GitHub Pagesindex.htmlgit push

One step further1 lesson

  1. 08Branches — experiment without breaking what worksgit branchgit switch -cgit merge