Updated the git Mac OS X package. Let me know if there are issues (note, yes, this will only work on Tiger, and maybe Leopard).
Edit: this page will hold further updates for this package.

In Which We Worry and Complain Out Loud in Our Outside Voice
{ 2007 09 15 }
Updated the git Mac OS X package. Let me know if there are issues (note, yes, this will only work on Tiger, and maybe Leopard).
Edit: this page will hold further updates for this package.
Greg WIshart | 20-Sep-07 at 8:56 am | Permalink
I installed this but I have no idea where the files went… I don’t see git in the Applications folder, it doesn’t run from the command line after a reboot, and I can’t find it with Spotlight either. Help!
csm | 20-Sep-07 at 12:49 pm | Permalink
The installation prefix is ‘/usr/local’, so the programs are installed in /usr/local/bin.
You need to add that to your path; if you are using bash (you probably are):
For the built-in help to work, you also need to set your MANPATH:
Your best bet is to add these commands to
~/.bashrc. Welcome to UNIXIt isn’t clear if it’s possible (or wise) to modify these from the installer.
Greg WIshart | 20-Sep-07 at 1:39 pm | Permalink
Aha! I found a bunch of gitty files in /usr/local/bin and if I type “/usr/local/bin/git” I get a giant list of commands now. Hmm… I wonder why Spotlight didn’t find these. Maybe it only searches the inside of files.
Instead of “Welcome to UNIX”, a more appropriate line would be “Welcome to Open Source” because I’ve always had trouble getting Open Source stuff to build. Any why-the-heck the people at LINA want to use git when cvs is already out there and fairly free, is beyond me.
Oh well, I’m sure they have a good reason. Thanks!
Niket | 09-Oct-07 at 10:08 pm | Permalink
Thanks a Lot. I didn’t wanted to use macports or Fink.
Tonio | 02-Feb-08 at 6:25 pm | Permalink
They probably want to use git because either (a) it’s new and cool, or (b) because they hate cvs (I know I do).
Tonio Loewald | 03-Feb-08 at 1:43 pm | Permalink
Works flawlessly in Leopard. Didn’t even have to set any environment variables… it just works.
Marnen Laibow-Koser | 15-Feb-08 at 7:51 am | Permalink
Greg wrote:
> Any why-the-heck the people at LINA want to use git when cvs is already out there and fairly free, is beyond me.
Well, let’s see…
(1) CVS was groundbreaking in its time, but sucks in comparison to more recent tools. If you want to be doing centralized version control, you should probably be using Subversion rather than CVS.
(2) CVS and Subversion only support the centralized model. Git also supports a distributed model, which may be better for certain projects.
Justin | 18-Mar-08 at 6:48 pm | Permalink
“Works flawlessly in Leopard. Didn’t even have to set any environment variables… it just works.”
Ditto. Thanks very much! (Installing from source wasn’t working for me.)
anthony webb | 29-Mar-08 at 11:00 am | Permalink
How about an updated package? Thanks for your work, installing from source sucks.
csm | 29-Mar-08 at 3:32 pm | Permalink
@anthony webb: way ahead of you, there. I made a new package with the then-latest release of git a few weeks ago: http://metastatic.org/text/Concern/2008/03/08/git-package-1543-for-os-x/
masudul.haque | 01-Apr-08 at 2:24 am | Permalink
Is it working for Linux?
csm | 01-Apr-08 at 8:04 am | Permalink
Is that a joke?
liujie | 05-May-08 at 9:02 pm | Permalink
It’s work. Thanks very much!
Andres Narvaez | 03-Dec-08 at 4:32 pm | Permalink
I’m a mac Tiger user and would get -bash: git: command not found when running git –version after installation. Probably worth mentioning: I had to source my .bashrc in a .profile file first. If there’s a better way, please feel free to correct.
Here’s the full process:
* Download and Install Git package for OS X
* You will need to add /usr/local/bin to your $PATH:
o vim ~/.bashrc
o At the bottom of the file add this line:
o export PATH=$PATH:/usr/local/bin
* To source your .bashrc automatically for each terminal session (so the last three steps work):
o vim ~/.bashrc
o At the bottom of the file add this line:
o source ~/.bashrc
* After installation (and probably after a login/logout) open a terminal and type: git –version
* You should see something like this:
git version 1.5.3.1
* Git is now installed and working
csm | 08-Dec-08 at 2:44 pm | Permalink
You probably don’t want to add
to
~/.bashrc, because that will recursively keep sourcing the same file, unless bash does something intelligent with that scenario. You should just need theexportline in that file, and need to log out and log back in.Nathan Garza | 02-Feb-09 at 12:09 pm | Permalink
Oh wow! I’ve been banging my head against the git installation for a LONG time and had just about given up on installing it on my tiger system. Thanks!
Keith M | 28-Mar-09 at 9:59 am | Permalink
Thanks for that! I ran it on Leopard and worked flawlessly.