Axeorcat.com

Would you prefer to be an axe or a cat? That is the question. // I Code. I Sysadmin. I Beer.
April 21, 2010

Setup a central Git repository

On the server side create a repo with files then fetch it into a bare repo which becomes our central repo.

mkdir repo
cp -r /tmp/myproject repo/myproject
cd repo
mkdir myproject.git
cd myproject.git
git --bare init
git --bare fetch ../myprojectmaster:master
git config --global user.name scuadm
git config --global user.email scuadm@localhost
rm -rf ../myproject

Leave a Comment