Add your local project to GitHub

First, Create new repository on GitHub. Don’t “Initialize this repository with a README”.

Then open command line tool on your Mac, go to your working directory:

$ cd /your/project/directory

Init git locally, and add all file on git:

$ git init
$ git add .

Commit and push:

$ git commit -m "initial commit"
$ git remote add origin https://github.com/rhoulay/hello.git
$ git push -u origin master

Now your local project add to Github, you can commit and push anytime after your edit your files:

$ git add your-changed-file
$ git commit -m "some file change"
$ git push