Git is the tool.
GitHub is the place.
People say them in one breath, so beginners think they are one thing. They are not. By the end of this page you will tell them apart, and you will have tried Git once in a safe practice terminal.
One sentence each
read this twiceA tool on your computer
It saves labelled snapshots of your project and remembers all of them. It works with no internet and no account.
- Made in 2005 by Linus Torvalds
- You run it with commands
- Free, open source
A website that stores Git projects
It keeps a copy online so you can back up, share, and work with other people. It is a company's product, not part of Git.
- Launched in 2008
- Needs an account and internet
- Adds reviews, issues, hosting
How copies travel
tap a buttonYour laptop and GitHub each hold a full copy. Three words describe how copies move between them.
Sort it: Git or GitHub?
0 / 8Tap a card, then tap the bucket it belongs to. (On a laptop you can also use Tab and Enter.)
Push and pull, animated
illustrationCommit on your laptop, push it up, and see what a teammate's push does.
Both sides start with commit A.
A first taste of Git
preview · no installA repository is just a folder that Git watches. Turning a folder into one takes a single command. This is a practice terminal inside the page, not your computer: nothing is installed or changed. You will do the real thing in Chapter 6, after you have a terminal (Chapter 3) and Git (Chapter 4).
Loading
Where this course goes
5 chapters in part 1Your terminal
Open one in any folder and move around with confidence.
Install Git
Download, install, fix PATH problems, check it works.
First-time setup
Tell Git your name and email once.