Skip to content

Instantly share code, notes, and snippets.

@swijw
Created October 27, 2012 10:12
Show Gist options
  • Save swijw/3963968 to your computer and use it in GitHub Desktop.
Save swijw/3963968 to your computer and use it in GitHub Desktop.

Revisions

  1. swijw created this gist Oct 27, 2012.
    14 changes: 14 additions & 0 deletions Git
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    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