Removing git from /usr/bin

What's the best way to remove git and the following components from /usr/bin to only use Homebrew's?

Your shell uses the non-Homebrew binaries only because they come first in your $PATH.

So, in your ~/.bash_profile (or ~/.profile, depending on which you use), add the following line:

export PATH=/usr/local/bin:$PATH

Remove all other PATH assignments that would put /usr/local/bin after $PATH, because then, /usr/bin would come first, and your shell would use the system git.


You could remove the Git installations in /usr/bin, but it's up to which one to choose. I believe at some point you used the git-osx-installer, which put it there, but there's no problem keeping both installations. You just have to know which one you want to use.