To uninstall Git from Mac OS X, you need to find the uninstall.sh file that comes with Git and execute it.
- Open Terminal
- Run this command:
cd /usr/local/git/
to see whether the uninstall.sh is there - If yes, run the command:
sh /usr/local/git/uninstall.sh
- 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:
- Type
yes
- Enter your password
That’s it!