It's easier than you might think, so let's take a closer look at it. We will use the Mac Terminal app to accomplish our goal.
cd #path to projectfolder // Change directory to projectfolder
git init // Init the git repository in
git add . // Add this folder to the created git repo
git commit -m "Initial commit" // Commit the files with arbitary message