I currently have installed
git --version
git version 2.7.4 (Apple Git-66)
At this path
which git
/usr/bin/git
In a previous answer
How to uninstall Git?
it was suggested to run the uninstall.sh
, but if I run cd /usr/bin/git
I get -bash: cd: /usr/bin/git: Not a directory
.
Below I copied the output of ls -l
on the directory usr/bin
(only the files that look to me as related to git for reasons of space).
-rwxr-xr-x 1 root wheel 18176 Mar 12 09:08 git
-rwxr-xr-x 1 root wheel 18208 Mar 12 09:08 git-cvsserver
-rwxr-xr-x 1 root wheel 18208 Mar 12 09:08 git-receive-pack
-rwxr-xr-x 1 root wheel 18192 Mar 12 09:08 git-shell
-rwxr-xr-x 1 root wheel 18208 Mar 12 09:08 git-upload-archive
-rwxr-xr-x 1 root wheel 18208 Mar 12 09:08 git-upload-pack
How do I uninstall git? I am trying to update to a newer version, the installer runs successfully, but when I run git --version
I still get the older version. Thus I was thinking to uninstall git and reinstall from scratch, not sure if this is the right approach tho.
cd /usr/bin
thenls -l
and post results please?