krypted March 23rd, 2015
curl http://kernel.org/pub/software/scm/git/git-220.127.116.11.tar.gz -ONext, extract the files:
tar xzvf git-18.104.22.168.tar.gzOnce extracted, cd into the directory that you extracted the files into and then run a make configure with the git-22.214.171.124 directory as your working directory.
make configureIf you cannot run make becuase you don’t have a compiler, make sure that you have installed the developer tools on your computer. Once you have run the make, run the configure, specifying the directory you would like to install into. In this case I’ll be deploying into /usr/local/git:
./configure –prefix=/usr/local/git NO_MSGFMT=yes make prefix=/usr/local/git allNow run a make install to complete the installation:
make installOnce git has been installed, let’s look at the global options and choose which ones to configure:
git config –global –listThe first setting you’ll typically want to change is the name that git uses. To set your name use the git config again, but specify the –global option and then the setting (in this case user.name) following by the actual name you would like to use (in my case it’s Charles Edge):
git config –global user.name “Charles Edge”Next, use the user.email setting to set your email address:
git config –global user.email “firstname.lastname@example.org”Now that you know how to customize options, check the global options list and change any remaining that you would like to set. Once done, let’s grab the man pages. To install the man pages, first curl them down:
curl -O http://kernel.org/pub/software/scm/git/git-manpages-126.96.36.199.tar.gzThen extract the man pages into your /usr/local/share/man directory (or wherever you like to keep them):
tar xjv -C /usr/local/share/man -f git-manpages-188.8.131.52.tar.gzIf git is already installed you can obtain the version information by running git with a –version option:
git –versionNow let’s grab the html docs:
curl -O http://kernel.org/pub/software/scm/git/git-htmldocs-184.108.40.206.tar.gzAnd then let’s put them in /Library/WebServer/Documents:
tar xjv -C /Library/WebServer/Documents -f git-htmldocs-220.127.116.11.tar.gzYou should now be able to use git.
krypted November 21st, 2009
Posted In: Mac OS X