Newer version of git installed on OSX but not being used. How can I find it and use it?
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.
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
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.
- How to have git repository in NFS partition and working-tree in local partition?
- Git Archive of local Git repository
- Getting a list of all unversioned files in a Git-controlled folder
- git crlf configuration in mixed environment
- gitolite/git clone no overwriting previous version
- Android Studio Path to Git executable
For reference, here are the contents of my
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" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* source ~/.rvm/scripts/rvm
Also, in another answer, it was recommended to rename the default mac version of git to another name which I did from
Thank you for your help.
One Solution collect form web for “Newer version of git installed on OSX but not being used. How can I find it and use it?”
brew link git
Hope it helps