Macos – Correct location of git on Mac OS X

gitmacos

On Mac OS x 10.6.6 I have git installed in /usr/bin/ I wanted to update the git version however the git installer puts it in /usr/local/git/bin/

I realise I could rearrange to path to point to the local one first, but what I do not get is where the /usr/bin/git version came from.

Could it be part of an xcode install and lastly how would I delete it correctly? I have looked and looked but find nothing, and I didn't install it with ports etc. thanks

Best Answer

Try pkgutil --file-info /usr/bin/git to see if the system knows where it came from. But my guess is something other than XCode or an Apple package (unless you just installed XCode 4; I have no idea about it) put it there and you should just remove it.

Related Question