Create repository on github:
1) Logon github by using your account
2) Setting up ssh key pair between github server and your computer, refer "https://help.github.com/articles/generating-ssh-keys"
3) Create a repository on github server by clicking 'new repository' on the github page
4) On your machine, clone the newly created repository by issuing 'git clone [email protected]:youraccountname/new_repository.git', enter the passphase.
5) Add your changes/new files by issuing 'git add *'
6) Commit your changes by issuing 'git commit -a'
7) Commit the changes to github server by issuing 'git push origin master'
CLI
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/chenziliang/my_dotfiles.git
git push -u origin master