On my new 2014 Mac (OS X 10.9 Mavericks), I have just installed Git using Homebrew. In order to install Homebrew, I had to download and install XCode 5. So now, when I enter the command which git
, I can see that Git is running from a different file pathway than the rest of the Homebrew installation. Git's different pathway is /usr/bin/git
. I believe it is supposed to be in /usr/local/bin/
instead, with the rest of Homebrew.
I found a solution to getting Git to run from the Homebrew installation (and consequently an updated version of Git). According to another Q&A on this site, the solution is to add export PATH="/usr/local/bin:$PATH"
in ~/.bash_profile
.
Unfortunately, I don't understand where to enter that information. When I'm in Terminal, I can't change directories to something called "~/.bash_profile." How do I get there to enter the command export PATH="/usr/local/bin:$PATH"
? I tried entering the command /usr/bin/open ~/.bash_profile
, but Terminal tells me: The file /Users/**MYNAME**/.bash_profile does not exist.