In this blog post, I will show you how to create a git repository on a Linux or Windows machine.
About Git
Git is the most popular code versioning control tool in the world, and in this series of articles, I will show you how to use it.
Create Repository
To create a repository called Repo01, I will start with creating a folder with the same name.
mkdir c:\Repo01
Initializing a New Repository
The first command that I will use will create my repository.
I will run from inside the c:\Repo01 folder
git init
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2020/05/051320_2222_HowToCretea1.png)
The command will create a hidden folder called .git with the following files.
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2020/05/051320_2222_HowToCretea2.png)
Check Status
To check the status of the repository, I will run the following command.
git status
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2020/05/051320_2222_HowToCretea3.png)
In the next article, I will show you how to add files and commit them to the repository.