Skip to content

Instantly share code, notes, and snippets.

@c0ldlimit
Created November 16, 2012 17:14
Show Gist options
  • Save c0ldlimit/4089101 to your computer and use it in GitHub Desktop.
Save c0ldlimit/4089101 to your computer and use it in GitHub Desktop.

Revisions

  1. c0ldlimit created this gist Nov 16, 2012.
    13 changes: 13 additions & 0 deletions git_newrepo
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # 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/c0ldlimit/vimcolors.git
    git push -u origin master

    # Push an existing repository from the command line

    git remote add origin https://github.com/c0ldlimit/vimcolors.git
    git push -u origin master