Updated universal git package for Mac OS X:
(I made the mpkg on Leopard, but compiled the code on Tiger. This should work on both, but I haven’t tried the installer on Tiger. I’ve also tried to include libexpat, and thus git-http-push support. Let me know if there are any issues)
Update: I’ve rebuilt the package, which should install all the git builtin programs (which are exactly the same as the main git binary, but with a different name) as hard links, not as independent programs. This will take up less space on your hard disk, but the installer is the same size (!). If this doesn’t work for you, use the non-hard-linky installer.
Edit: this page will hold further updates for this package.


Loading...
Konstantin K | 05-Apr-08 at 9:29 pm | Permalink
csm,
I noticed that many of the git-* binaries under /usr/local/bin are identical copies of each other. Most weigh in at 2M, which makes the whole package bloat.
My point being, if you find a way to package those duplicates as soft links, you would save yourself a lot of bandwidth.
Oh, also. Would you consider sharing / publishing source of your (xcode?) project?
And most importantly — thank you for this convenient package!
csm | 05-Apr-08 at 11:22 pm | Permalink
The git source package doesn’t install symlinks for these, and I’m not sure why. The installer is made from the files as-installed. It would be nice to optimize this, but really, it’s not a lot of space these days.
I’m just compiling it using the configure script, and use the pre-made man pages (there’s another tarball with these on the git site). I wrote the recipe for doing this in this comment:
http://metastatic.org/text/Concern/2007/08/18/git-package-for-mac-os-x/#comment-44899
I’m using PackageMaker.app to make the installer, which is dirt-simple to use.
Thanks!
[edit: posted the wrong link; fixed]
csm | 05-Apr-08 at 11:46 pm | Permalink
Also: on Linux, these programs seem to be installed as hard links to the same file. The installation on OS-X doesn’t seem to do this.
peter | 10-Apr-08 at 11:06 am | Permalink
I believe git is moving away from using the git-init style commands, and towards git init subcommands instead. Means there’s only need for 1 file in /bin (or whereever).
Just something to consider for the future.
itsnotvalid | 15-Apr-08 at 7:54 am | Permalink
I saw from Git’s wiki that they have a project in Google code: http://code.google.com/p/git-osx-installer.
seems to provide Leopard versions of Git binary.
But anyways good job for what you have done.
csm | 15-Apr-08 at 8:21 pm | Permalink
Good for them.
Justin | 28-May-08 at 10:32 am | Permalink
Thanks for this!!
eric pugh | 19-Jun-08 at 6:25 am | Permalink
Seems like Git is advancing quickly.. I attempting to use Braid, and the latest version will only run with Git 1.5.4.5! Any chance of making another Tiger package?
Jon Kulp | 21-Jul-08 at 11:26 am | Permalink
Thanks so much for this package! The macports repo wasn’t working for this package–kept hanging on the rsync fetch–so I’m very grateful for this!
rob | 05-Sep-08 at 10:47 pm | Permalink
This worked perfectly on Tiger! Thank you very much for taking the time to put it together.
Sean | 21-Sep-08 at 5:52 pm | Permalink
Thanks a ton for the package. I was particularly interested in the http-push functionality, but it appears that it isn’t quite there yet. Here is what I get on a Tiger Intel machine.
fatal: git-push is not available for http/https repository when not compiled with USE_CURL_MULTI
Is is possible to rebuild with USE_CURL_MULTI defined?
csm | 21-Sep-08 at 8:07 pm | Permalink
I think the version of CURL that comes with Tiger is not capable of supporting git’s http-push. git itself disables USE_CURL_MULTI, and it’s probably for a good reason.
Joe Goggins | 25-Sep-08 at 8:33 am | Permalink
THANK YOU THANK YOU THANK YOU, works great on Tiger!
ralo | 27-Sep-08 at 10:01 pm | Permalink
It didn’t work for me.
csm | 28-Sep-08 at 12:06 pm | Permalink
@ralo: Care to explain what didn’t work?
ozofeliz | 01-Nov-08 at 8:31 am | Permalink
Great.
Giotto | 18-Nov-08 at 2:38 pm | Permalink
you are a hero. thanks a lot
Anthony | 11-Jan-09 at 8:18 pm | Permalink
Hi I wanted to install 1.6.1 which I did using the installer hosted on google code. Thing is it insalls to /usr/local/git/bin and is there OK, but from the command line when I do a git –version it is still this version I installed from this site.
How do I get rid of 1.5.4.3 that I installed from here and point my mac to use the new 1.6.1 I recently installed?
csm | 20-Jan-09 at 9:46 pm | Permalink
@Anthony
The installer I made installs the programs into /usr/local/bin. What you want to do is modify the PATH variable in the file
~/.bashrcor possibly~/.bash_profileso the path/usr/local/git/bincomes before/usr/local/bin.Also, since the installs are separate, you can just go ahead and remove the programs that are in
/usr/local/bin. I think they all start withgit*.