Repository

Repository

In practice, a repository is any folder
we told git to version control

Repository

How to create a repository?

From terminal, we move into the folder
which we want to version and...

git init
Initialized empty Git repository in /path/project/.git/

We created our first repository

Command init makes the current directory a git repository

n.b. it is not required for the directory to be empty
Repository

What has changed?

ls -al
total 0
drwxr-xr-x 1 user users  60 31 ago 01.16 .
drwxr-xr-x 1 user users 460 31 ago 01.16 ..
drwxr-xr-x 1 user users 200 31 ago 01.16 .git

git created a directory called .git,
which contains all the necessary files it needs to work

Included the whole project's history