title: How to update my version of git on OSX 10.8
body: <p>I'm on OSX 10.8.2 and I'm running git git v1.7.4.4</p>
  
  <p>I just installed git on a remote server and it's version 1.11.x. I'm I would like to be running the same version of the software but I cannot figure out how to update git on my laptop.</p>
  
  <p>I attempted to follow the steps listed <a href="http://www.eatplaycode.com/how-to-install-git-in-os-x-mountain-lion-10-8/" rel="noreferrer">here</a>, which instruct to download the <a href="http://code.google.com/p/git-osx-installer/downloads/list" rel="noreferrer">git-OSX-installer</a>, run the install (which ran smoothly) and then do:</p>
  
  <pre><code>$ sudo mkdir -p /usr/local/bin
  $ sudo ln -s /usr/local/git/bin/git /usr/local/bin/git
  </code></pre>
  
  <p>But after this I do <code>git --version</code> and it's still 1.7.4.4. Did I just reinstall the same version? Or did I install a newer version somewhere else?</p>
  
  <p>I've been reading similar questions and I think the issue is that OSX ships with an old version of git installed in a different location then where the git-osx-installer or mac ports will put it. But I'm not sure how to correct this. Thanks in advance for your advice.</p>
  
  <p>Update:</p>
  
  <p><code>which git</code> returns: 
  /usr/bin/git</p>
  
  <p><code>echo $PATH</code> returns: 
  /opt/local/bin:/opt/local/sbin:/usr/local/rvm/gems/ruby-1.9.3-p194/bin:/usr/local/rvm/gems/ruby-1.9.3-p194@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p194/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin</p>
  
  <p>Update2:</p>
  
  <pre><code>ESL ~/Downloads$ export PATH=/usr/local/bin:$PATH
  ESL ~/Downloads$ which git
  /usr/local/bin/git
  ESL ~/Downloads$ 
  ESL ~/Downloads$ git --version
  git version 1.8.1.3
  </code></pre>
  
  <p>It appears I installed the newer git version in local. So should I add the <code>export PATH=/usr/local/bin:$PATH</code> to my .bash_profile? Is it a problem that both versions of git are installed?</p>
  
  <p>I added <code>export PATH=/usr/local/bin:$PATH</code> to the bottom of my ~/.bash_profile and now the new version of git runs.</p>