Jun 212014
Quick setup — SSH
We recommend every repository include a README, LICENSE, and .gitignore.
Create a new repository on the command line
mkdir newreponame (md newreponame) on Windows commandline.
cd newreponame
- git init
- git add README.md
- git commit -m “first commit”
- git remote add origin git@github.com:githubusername/RH.git
- git push -u origin master
- touch README.md
Push an existing repository from the command line
- git remote add origin git@github.com:githubusername/RH.git
- git push -u origin master
Quick setup — HTML
- git init
- git add README.md
- git commit -m “first commit”
- git remote add origin https://github.com/githubusername/RH.git
- git push -u origin master
- touch README.md
Push an existing repository from the command line
- git remote add origin https://github.com/githubusername/RH.git
- git push -u origin master