Lets say we are creating a project name library and username of the github account is ruby.
Step 1: Create a project in Github named library.
Step 2: Generate ssh key
https://help.github.com/articles/connecting-to-github-with-ssh/
Step 3: Create library project in your local machine and commit using git
git init git add . git commit -m 'Initial Commit' git remote add origin https://github.com/ruby/library.git # for using ssh git remote set-url origin git@github.com:ruby/library.git git push -u origin master