Git Home Directory

 26 May 2009


This is just a quicky but I had to setup a new laptop and remembered how easy it is to install a new git home directory into a clean Mac OS X home directory. I’m using the Mac OS X git binaries gotten from (also linked from the main git site).

From my home directory on the new mac:

git init

git remote add origin username@repo

git config branch.master.remote origin

git config branch.master.merge refs/heads/master

git pull

Obviously replace the username@repo with your home directory repository. For me I get no conflicts at the moment. Not sure what would happen if there are conflicts, but it’s nice that git just adds the new files and any files that are the same just stay. Pretty awesome.