A new local repository is easy to set up. All we need is to open up a terminal window, cd to the directory we want to use and execute the following command:
$ git init
This will initialize your repository. By default you will be using the “master” branch.