Skip to content

Instantly share code, notes, and snippets.

@jessearmand
Forked from topfunky/new-github.sh
Created July 26, 2011 02:51
Show Gist options
  • Save jessearmand/1105843 to your computer and use it in GitHub Desktop.
Save jessearmand/1105843 to your computer and use it in GitHub Desktop.
Shell shortcut to setup a Git repo with GitHub. Works with zsh or bash.
# Usage: new-github topfunky tidy_table
function new-github() {
git remote add origin git@github.com:$1/$2.git
git push origin master
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
git config push.default current
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment