How to complete uninstall git from Ubuntu Desktop 12.04?
About 6 months ago I tried installing git and ended up botching the install/configuration. I was then called away to another project and no longer needed to use git. I'm back to the project now, and would like to reinstall git completely from scratch. So I ask:
How do I completely uninstall git from my Ubuntu Desktop 12.04 machine?
When I run which git
I get:
/usr/bin/git
Thanks in advance!
you can use this command:
sudo apt-get remove git
Your personal settings for your user related to git are usually stored in ~/.git
which is the .git
folder in your /home/$USER
folder.
Just remove ~/.gitconfig
and your settings will return to a pristine, unconfigured state.
if you REALLY want to remove git completely and start over which you don't really need to do ever, do the above statements to remove the .git
folder, then do: sudo apt-get purge git; sudo apt-get autoremove; sudo apt-get install git