How do I completely remove Github for Mac along with its Git installation and all?

sr3 picture sr3 · Sep 18, 2014 · Viewed 11.3k times · Source

I'm new to OSX, so I don't want to just go around deleting things without really knowing what's up. What's the best way to go about obliterating Github and its Git from my machine?

Thanks!

Answer

Thomas Ayoub picture Thomas Ayoub · Sep 18, 2014

To delete git, just drag and drop the folder from the /Application/Git.app to the trash bin. Then open a Terminal (/Application/Utilities/Terminal) and copy paste this lines (one by one) :

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

Then restart your computer and voilà