Skip to content

Instantly share code, notes, and snippets.

@swijw
Created October 27, 2012 10:12
Show Gist options
  • Select an option

  • Save swijw/3963968 to your computer and use it in GitHub Desktop.

Select an option

Save swijw/3963968 to your computer and use it in GitHub Desktop.
git
1. Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/swchenforgetful/Test.git
git push -u origin master
2. Push an existing repository from the command line
git remote add origin https://github.com/swchenforgetful/Test.git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment