- create a new repository on the command line
echo "# scripts" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/tolkien/scripts.git
git push -u origin master
- …or push an existing repository from the command line
git remote add origin https://github.com/tolkien/scripts.git
git push -u origin master
- about format of README.md(markdown)
- https://help.github.com/articles/github-flavored-markdown/
- https://help.github.com/articles/writing-on-github/