title: Install another version of Git on mac osx lion
body: <p>On my mac, first I installed the xcode which is installed with git already, however the git is old version. When I run which git, the result is: "/usr/bin/git".</p>
  
  <p>I want to install latest version of git, and use this as the default git. I tried the way on this site: <a href="http://git-scm.com/book/en/Getting-Started-Installing-Git" rel="nofollow">http://git-scm.com/book/en/Getting-Started-Installing-Git</a></p>
  
  <p>First, i update to the xcode version of git, it doesn't work.</p>
  
  <p>Then, I tried to download new version of git and install it in the usr/local/git directory, when I run the command "make prefix=/usr/local all", I got some problem: </p>
  
  <pre><code>ld: library not found for -lintl
  collect2: ld returned 1 exit status
  make: *** [git-credential-store] Error 1
  </code></pre>
  
  <p>Anybody knows how to fix this problem?</p>
  
  <p>Also, I tried to download the dmg file and it is installed successfully, but when I run the command git --version, it is still the old version.</p>
  
  <p>Thanks.</p>