Next, create a directory, named hobnob, to house our project. Then, navigate inside and run git init. This will allow Git to start tracking changes to our project; a project tracked by Git is also known as a repository:
$ mkdir -p ~/projects/hobnob$ cd ~/projects/hobnob/$ git initInitialised empty Git repository in ~/projects/hobnob/.git/
Running git init creates a .git directory, which holds all version-control-related information about the project. When we interact with Git using its CLI, all it's doing is manipulating the content of this .git directory. We usually don't have to care ...