Mundhra LabsGitHub, Gently
Stop 2 of 7·4 min read

A repository is one project, with its memory

Everyone shortens it to "repo". It's a folder, plus the complete history of every saved change to that folder.

Know what a repo is? Skip to stop 3 →

In shortA repo is a project folder that remembers every saved version of itself.

Inside a repoA small website project
  • the front page
  • index.htmlthe website
  • style.csshow it looks
  • app.jshow it behaves
  • things to never save
  • LICENSEwho may reuse it
Fix renewal date showing a day latea41c9e2·today
Add dark mode7be0d13·yesterday
Add sign in with Google39f2a08·3 days ago
First version of the trackere05b7c1·last week

Left: what's in the folder right now. Right: its history, newest at the top. The repo is both.

Reading a repo's addressTap each part
//

Every repo has an address in this shape. Tap a part to see what it means.

Public or private?

Public means anyone on the internet can see the code (they still can't change it). Private means only people you invite can see it. Private repos are free and unlimited, so start private unless you mean to share.

One project, two copies

The same repo lives in two places: a copy on your computer, called local, and a copy on GitHub, called the remote (usually nicknamed ). They don't stay in sync on their own, unlike Dropbox. You move changes between them on purpose. That's stop 4.

A good rule of thumb

One repo per app or website. Your tracker app, your company website and this guide would be three repos. Keeping them apart means you can share one without sharing the others.