Adding an existing project to git repository for the purpose of source code management is very simple. Here is a brief tutorial on the subject.
First of all, we will need to navigate to our project’s root directory using terminal. For the sake of this tutorial, my project was saved on my desktop and is called SourceControl.
Regardless of where your project was saved on your Mac, you’ll have to follow the same principle and navigate to your project by replacing “~/Desktop/SourceControl” with the path of your project.