<LEARN/>
← Git & GitHub

// lesson 3 of 9

Your first repository

Create a repository and understand the working folder.

// 1. read the lesson

A repository (repo for short) is a project folder that Git is watching. To turn any folder into a repo, move into it and run:

mkdir my-site
cd my-site
git init

Git creates a hidden .git folder where it stores all your history. You never edit it by hand.

Run git status often. It is your best friend: it tells you which files are new, which have changed and what is ready to be saved.

git status

Written by the LEARN team.

Sign in to take the lesson test.

Your answers and code are checked and saved to your account.

Sign in