- Uninstall the git installed by this installer (command from here):
sudo rm -rf /usr/local/git/ /usr/bin/git /etc/paths.d/git /etc/manpaths.d/git
- Install homebrew, if you haven't, and:
brew update brew install git
- Fix any paths/etc. that you might have that dependent on the other git, if any.
- Restart Terminal.app.
To update the Git and Git Flow completion and your Git prompt as I described previously to work with Homebrew Git, assuming you have installed git flow and git flow completion, you can put this in your ~/.bashrc or ~/.bash_profile:
brew upgrade git
# git provided by homebrew source /usr/local/etc/bash_completion.d/git-completion.bash # if fails, do find /usr/local/Cellar -name git-flow-completion.bash to find path and set it here source /usr/local/Cellar/git-flow-avh/1.8.0/etc/bash_completion.d/git-flow-completion.bash source /usr/local/etc/bash_completion.d/git-prompt.sh PS1='\h:\W$(__git_ps1 " (%s)") \u\$ ';