MicrolearnENPTES

Your first repository

Lesson 1 of 24 · Git.Micro

Git keeps the history of a project folder: every saved version, who made it and when. A folder becomes a Git repository with one command, git init, which creates a hidden .git folder where that history lives.

A repository is your project folder plus its history, stored in .git.

git init creates an empty repository: nothing is saved yet, your files are just there.

git status is your compass: it says where you are and what to do next. Run it whenever you're unsure.

Here you type real Git commands in the terminal. The panels show the three areas of Git and the commit graph, updated after every command.

Check yourself

What does git init do?

Creates an empty repository (.git) in the folder

This folder has a small website but no history. Turn it into a Git repository, then check its status.

Do it in the browser: a real Git tool, a short mission and instant feedback. No install.

Start this lesson — free
The staging area →

All lessons · Git.Micro