naj
naj

Reputation: 25

How do I remove git with apple version?

I am currently having a problem to install git that is without the apple version. This is what is currently shown on my terminal.

enter image description here

Upvotes: 0

Views: 918

Answers (1)

torek
torek

Reputation: 488519

Your PATH has /usr/local/bin after /usr/bin, so you will get /usr/bin/git in preference to /usr/local/bin/git when both are installed. You can explicitly run /usr/local/bin/git, or /usr/bin/git, to pick one of the two for one particular command. It's generally inadvisable to uninstall system-provided versions of software, but if you change your PATH setting to put /usr/local/bin before /usr/bin, running git will get you the locally-installed version instead.

Upvotes: 1

Related Questions