Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

3 Answers 3

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
share|improve this answer

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
share|improve this answer
sudo rm -rf /usr/local/git /etc/paths.d/git /etc/manpaths.d/git
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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