

Step 4: Add files to your new local repository $ git add. Step 3: Intialize the local directory as your git directory $ git init -b main Step 2: Now go to your mac terminal and in your project directory. You can add these files after your project has been pushed to GitHub. Step 1: First you have to create a new repo or if it is already created by someone in your organization you can skip this step. To avoid errors, do not initialize the new repository with README, license, or gitignore files.

If git is not already installed on your MAC System you can follow this link. In this video we will commit our existing project to GitHub using Mac Terminal.

Steps to add your existing project to GitHub are similar, no matter if you are using git bash on Windows or any other CLI on any OS.
