Update git on mac

Posted by Meltemi on Super User See other posts from Super User or by Meltemi
Published on 2010-11-11T17:37:08Z Indexed on 2010/12/24 2:55 UTC
Read the original article Hit count: 422

Filed under:
|
|
|

I can't remember how I installed git a while back....but now it's living in /usr/bin/git and needs to be updated.

I don't care how (pre-compiled or build my own) but what I don't want is another version existing somewhere else. i vaguely remember curl(ing) down the source & compiling it. but not positive. anyway, what's the easiest way to keep Git up-to-date under Mac OS X?

Side question: I'm not that familiar with git. once it's installed is it ENTIRELY contained within its directory? so, in my case, everything about git on my machine (excluding the actual code repositories of course) is in /usr/bin/git/ ? If so then can I just move git around with a simple mv -R /usr/bin/git /opt/git? Then update my $PATH and everything should work as before? if so then i supposed i could just install again by any method and to any directory...and then move the new one into /usr/bin replacing the old version?!? Or is this bad?

© Super User or respective owner

Related posts about osx

Related posts about mac