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.gztar -xvzf git-1.6.5.2.tar.gzcd git-1.6.5.2make prefix=/usr/localsudo 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 getFaviconcd getFavicongit inittouch READMEgit add READMEgit commit -m 'first commit'git remote add origin git@github.com:shiflett/getFavicon.gitgit push origin master
If only discovering favicons were this easy! :-)