Created
May 10, 2012 18:32
-
-
Save joeybaker/2654930 to your computer and use it in GitHub Desktop.
Turn a dir into a git repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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