I've installed git on my mac, but I don't know how to completly remove it, cuz' I want to reinstall it again...any tips?

link|improve this question

67% accept rate
feedback

3 Answers

It really depends on how you installed it.

Places to look for git:

INSTALL_PREFIX=/usr/local in my case (perhaps /opt/local or something else)

  • INSTALL_PREFIX/git/
  • INSTALL_PREFIX/bin/git*
  • INSTALL_PREFIX/libexec
  • INSTALL_PREFIX/share
link|improve this answer
feedback
sudo rm -rf /usr/local/git /etc/paths.d/git /etc/manpaths.d/git
link|improve this answer
feedback

If you installed Git from code.google.com, you can follow the official uninstall instructions:

sudo rm -rf /usr/local/git /etc/paths.d/git /etc/manpaths.d/git

If you installed it through the Fink package manager, you can remove git with:

fink remove git
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.