World map

 

BM: Baca dalam Bahasa Melayu

World 0: Start Here

Git vs GitHub

You will learn: the difference between Git and GitHub.

The problem

One friend says: put it on Git. Another says: it’s on GitHub. Are they the same thing? Not quite!

Watch

git log --oneline lists two commits, right on this computer. Terminal output: $ git log --oneline 3a12797 (HEAD -> main) Add home page 6d3a9b1 Add README

Git: A free tool on your computer that saves versions of your project. is a tool on your computer. It saves your versions. It works with no internet at all.

Watch

GitHub: A website that stores Git projects online and helps teams work together. is a website. It keeps a copy of your Git projects online. Friends and teams can share and review work there.

Try it

Sort each card. Is it about Git, or about GitHub?

Drag a card into a box. Or tap the card, then tap the box.

      Predict

      The Wi-Fi is down. Can you still make a commit?

      Pick one answer.

      Check

      GitHub is not the only one. GitLab, Bitbucket and Codeberg do the same job. They are all Git hosts. Can a project move from one to another?

      Pick one answer.

      You did it!

      You can now explain the difference between Git and GitHub.

      Go deeper (optional)

      Git is open source. People from all over the world help build it. GitHub is a company, owned by Microsoft. You will connect your projects to GitHub in World 4.