Git on Snow Leopard
02 Nov 2009I've had a GitHub account for months, but I've yet to use it. After I mentionined on Twitter that I might start using it, the response was very positive. People really love Git and GitHub both.
Unsurprisingly, my Mac didn't already have git
. (It's not part of the developer tools either.) GitHub has a nice help page on installing it, including one specifically on compiling from source. I chose the latter.
GitHub's help page on compiling from source is thorough enough to make it seem complicated. To show just how simple it is, here's exactly what I did:
curl -O http://kernel.org/pub/software/scm/git/git-1.6.5.2.tar.gz
tar -xvzf git-1.6.5.2.tar.gz
cd git-1.6.5.2
make prefix=/usr/local
sudo make install prefix=/usr/local
GitHub provides very helpful instructions when you create a new project. For my new getFavicon project, the instructions were as follows:
mkdir getFavicon
cd getFavicon
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:shiflett/getFavicon.git
git push origin master
If only discovering favicons were this easy! :-)