A
A
Arthur Levenson2020-11-02 11:38:28
git
Arthur Levenson, 2020-11-02 11:38:28

How to uninstall git on mac os?

Please tell me how can I remove git in macos.

I try the commands: rm -rf /usr/local/git, rm /etc/paths.d/git, rm /etc/manpaths.d/git. But it doesn't help

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Cherny, 2020-11-02
@kiskiskit

pre-installed git sits in /usr/bin/git
there is no point in removing it, if you want to use a different version then install it and add the path to it in PATH, just before /usr/bin/git.
In general, it is not advised to remove the pre-installed git: https://apple.stackexchange.com/questions/244001/h...

G
Gip, 2020-11-02
@Giperoglif

brew uninstall git

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question