With successful installation of Git, we are now ready to turn our node-web-server directory into a Git repository. In order to do this, we'll the following command:
git init
The git init command needs to get executed from the root of our project, the folder that has everything that we want to keep track of. In our case, node-web-server is that folder. It has our server.js file, our package.json file, and all of our directories. So, from the server folder, we'll run git init:

This creates a .git directory inside that folder. We can prove that by running the ls -a command:
ls -a
As shown in the following screenshot, we get all of the directories including the hidden ones and right here I do indeed have .git:

Now this directory is not something we should be manually updating. We'll be using commands from the Terminal in order to make changes to the Git folder.
Let's use the clear command to clear the Terminal output, and now we can start looking at exactly how Git works.