How to uninstall git from my terminal? I have been having security issues and my passwords might have been stolen. I would like to delete git forever.
Technically, removing the file /usr/bin/git
will do what you are asking, but
git
also installs;You wil be much better off if you accept that system-installed components cannot easily be uninstalled, and tackle the issue from a different angle altogether.
If indeed your credentials have been compromised, replace the password (or close your account) on all affected services. What software you have installed locally has absolutely no bearing on what someone can do with a password to another set of computer systems, anyway.
Conversely, if you believe that git
somehow has allowed an intruder access to your local computer, merely removing git
will not prevent them from continuing to control your computer if they are at all competent. The only remedy is to reinstall your system from trusted sources, probably then still with git
but with entirely different passwords etc. Needless to say, you need known-good backups of all non-system files, or an extremely careful and tedious process to investigate for each file with any sort of priveleged information whether or not it needs to be replaced.