Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible for me to install 2 copies of git on my Mac? I have git 1.6.3.3 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 1.6.3.3 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
1  
Won't two versions of git still be compatible? – Macha Nov 4 '09 at 21:32

Okay, if you are compiling yourself, then a simple

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

(and then make, make install) should suffice. Your binary files are now in /opt/git-1.6.5.2/bin. 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .