Initialize Git for a project

Last Updated: October 7, 2019

You have to initialize Git if you want to use Git in your project

1 First create empty directory where you want to initialize
You can create “MyProject” inside the Documents directory
2 Then go inside MyProject in your Terminal and run the command

git init 

This will initialize your MyProject folder for Git and .get folder is created

To list the files inside the folder you can run the following command in your terminal

ls -la