Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible for me to install 2 copies of git on my Mac? I have git under /opt/local/bin/git, I would like to install a newer version of git in a different location on Mac OS X. How can I do that?

Thank you.

share|improve this question
Do you want to compile it yourself or are you taking the dmg file? –  Debilski Nov 4 '09 at 20:22
I tried to compile myself but I want to switch between 2 version of git. git for work, but git newer version at home. How can I do that? –  hap497 Nov 4 '09 at 20:26
Is there any special reason why one would need both versions simultaniously? –  Debilski Nov 4 '09 at 20:33
Won't two versions of git still be compatible? –  Macha Nov 4 '09 at 21:32

2 Answers 2

Okay, if you are compiling yourself, then a simple

./configure --prefix=/opt/git-

(and then make, make install) should suffice. Your binary files are now in /opt/git- Obvously, you can change the directory to your needs.

share|improve this answer

Just install the new version. They will still be compatible. (no guarentees on 2.0 whenever they make it, but there should be no incompatibilites between two 1.6.x versions)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.