title: Newer version of git installed on OSX but not being used. How can I find it and use it?
body: <p>I'm trying to update git from the default mac version to a newer version. I already have a newer version installed (as seen below) but I don't know where it is.</p>
  
  <pre><code>Aarons-iMac:~ AaronWilliamson$ cd
  Aarons-iMac:~ AaronWilliamson$ git --version
  -bash: git: command not found
  Aarons-iMac:~ AaronWilliamson$ brew upgrade git
  Error: git 2.2.2 already installed
  </code></pre>
  
  <p>How can I locate the path to where git 2.2.2 is installed so I can use it? I'm a beginner and am in the process of understanding the concepts of environment variables and the $PATH variable.</p>
  
  <p>For reference, here are the contents of my <code>.bash_profile</code></p>
  
  <pre><code>export PATH=/bin:/usr/local/bin:$PATH
  export PATH="/usr/local/bin:$PATH"
  source /usr/local/opt/chruby/share/chruby/chruby.sh
  source /usr/local/opt/chruby/share/chruby/auto.sh
  export PATH=./bin:/usr/local/bin:$PATH
  source /usr/local/opt/chruby/share/chruby/chruby.sh
  source /usr/local/opt/chruby/share/chruby/auto.sh
  source ~/.profile
  export PGDATA=/usr/local/var/postgres
  export PGHOST=/tmp
  export PGDATA=/usr/local/var/postgres
  export PGHOST=/tmp
  export PGDATA=/usr/local/var/postgres
  export PGHOST=/tmp
  export PGDATA=/usr/local/var/postgres
  export PGHOST=/tmp
  
  ### Added by the Heroku Toolbelt
  export PATH="/usr/local/heroku/bin:$PATH"
  
  [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; source "$HOME/.rvm/scripts/rvm" #             Load RVM into a shell session *as a function*
  source ~/.rvm/scripts/rvm
  </code></pre>
  
  <p>Also, in another answer, it was recommended to rename the default mac version of git to another name which I did from <code>git</code> to <code>git-apple</code>.</p>
  
  <p>Thank you for your help.</p>