简体   繁体   中英

Issues while trying to run git uninstall.sh on Mac OS

I wanted to try to update Git on my Mac OS to the latest version and it says to run the provided uninstall.sh first. I must confess that I ran the pkg before reading the "Read me". Not sure if that screwed it all up ...

Now I am not big with the terminal and found the following command to run a shell script:

$ sh uninstall

but that resulted in:

/usr/sbin/uninstall: /usr/sbin/uninstall: cannot execute binary file

where I got stuck now.

Any idea what I have to do to resolve this error?

You should run the uninstall.sh packaged with your previous distribution of Git, as explained in " Install and Update to latest version Git on Mac OSX 10.10 Yosemite ":

Upgrading Git from a previous version to the latest 2.0.1

If you have previously installed Git you can upgrade to the latest version by uninstalling the previous install using the uninstall.sh file with the installation.

Go through the same process of downloading and mounting and the .dmg – then launch the Terminal.

http://coolestguidesontheplanet.com/wp-content/uploads/2013/12/upgrading-git-osx.png

uninstall and uninstall.sh are two different things. The former is a binary that comes with the os, the latter is a shell script that comes with the package.

Try: sh uninstall.sh instead

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM