In this recipe, we will take a look at creating your first Git project on your local machine. If you're a Windows user, please make sure that you use Git Bash. This way, you can use the same commands as the ones Linux and OS X users use.
To create our first Git project, perform the following steps:
Open your terminal and browse to the folder where you want to create your project.
Create a folder named
super-gitand create the following directory inside it:
$ mkdir super-git $ cd super-git
To make this folder a Git project, we need to tell Git to monitor this folder. We do this by typing the following command:
$ git init
The following screenshot shows you the output for this command:
Let's create one file to add to the repository. We name it
$ echo "HELLO README" > README.md
$ git add README.md
Commit the file...