Using HTTP

To clone you Repository:

git clone https://github.com/username/repository_name.git

To create a new repository on the command line:

echo "# Comment" >> README.md

git init

git add README.md

git commit -m "first commit"

git remote add origin https://github.com/username/repository_name.git

git push -u origin master

To Push an existing repository from the command line:

git remote add origin https://github.com/username/repository_name.git

git push -u origin master