Skip to content

Instantly share code, notes, and snippets.

@timkelty
Created June 19, 2009 15:58
Show Gist options
  • Select an option

  • Save timkelty/132697 to your computer and use it in GitHub Desktop.

Select an option

Save timkelty/132697 to your computer and use it in GitHub Desktop.

Revisions

  1. timkelty created this gist Jun 19, 2009.
    14 changes: 14 additions & 0 deletions snippet.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # !/bin/bash
    # Set up an new github repository

    GITHUB_USERNAME="timkelty"

    # from github instructions page after creating a repo
    mkdir "$1"
    cd "$1"
    git init
    touch README
    git add README
    git commit -m 'first commit'
    git remote add origin git@github.com:"$GITHUB_USERNAME"/"$1".git
    git push origin master