Got some info from various sites, so thought I would consolidate it here. I just started a new project on my Mac and I want to back it up on the net. Here is what I did:
On CentOS 5.4 Server
yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel autoconf curl curl-devel gcc
ldconfig
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
tar zxvf git-latest.tar.gz
cd git-<date>
make configure
./configure --prefix=/usr
make
make install
When done you should be able to run:
git
and see a help message. Nice! This means git is installed. Now let's set up a repo.
mkdir -p /var/git/cookingwright
cd /var/git/cookingwright.git
git init
Cool, we now have a blank repository on our CentOS 5.4 server.
On the Mac Book Pro
So I've been developing this base project on the MBP so now I want to make sure I start using SCM/git. So I go to my app:
cd ~/Sites/cookingwright
git init
git add .
git commit -am 'initial release'
git remote add origin ssh://benincosa.com/var/git/cookingwright
git push origin master
Now I'm git-afied. Hurray!