create new github repo from folder code example
Example: how to make a folder into git repo
$ git remote add origin [email protected]:username/new_repo
$ git push -u origin master
$ git remote add origin [email protected]:username/new_repo
$ git push -u origin master