Skip to content

Instantly share code, notes, and snippets.

@springfred
Forked from c0ldlimit/git_newrepo
Created August 17, 2018 02:41
Show Gist options
  • Select an option

  • Save springfred/7d4d2649751bef6ba6e65e545d0dbb9a to your computer and use it in GitHub Desktop.

Select an option

Save springfred/7d4d2649751bef6ba6e65e545d0dbb9a to your computer and use it in GitHub Desktop.

Revisions

  1. @c0ldlimit 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