Creating your first Git project

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.

We're going to create a project called super-git.

How to do it…

To create our first Git project, perform the following steps:

  1. Open your terminal and browse to the folder where you want to create your project.
  2. Create a folder named super-git and create the following directory inside it:
    $ mkdir super-git
    $ cd super-git
    
  3. 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 ...

Get GitLab Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.