How to Uninstall Git from Mac OS X?

To uninstall Git from Mac OS X, you need to find the uninstall.sh file that comes with Git and execute it.

  1. Open Terminal
  2. Run this command: cd /usr/local/git/ to see whether the uninstall.sh is there
  3. If yes, run the command: sh /usr/local/git/uninstall.sh
  4. The output of the command above will be: This will uninstall git by removing /usr/local/git/, and symlinks. Type 'yes' if you are sure you wish to continue:
  5. Type yes
  6. Enter your password

That’s it!

Leave a Reply