Skip to content

Instantly share code, notes, and snippets.

@joeybaker
Created May 10, 2012 18:32
Show Gist options
  • Save joeybaker/2654930 to your computer and use it in GitHub Desktop.
Save joeybaker/2654930 to your computer and use it in GitHub Desktop.
Turn a dir into a git repo
# add this to your .bash_profile
# usage: gitinstall http://github.com/path/to/git.git
function gitinstall(){ git init; git remote add origin "$@"; git config branch.master.remote origin; git config branch.master.merge refs/heads/master; git pull;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment