Hi - hope someone can advise me how to uninstall Git from a Mac.

I have only just installed Git from here: http://git-scm.com/download/mac

The install instructions contain things that I do not understand, eg.



*"Step 2 - Restart bash sessions------------------------------This include 
GNU screen sessions, TMUX sessions, etc. If you wish to preserve your 
precious screen session, just `source /etc/profile` and yo"*

When I went to find clarification from the documentation, I discovered that 
there is a Mac package that might be geared at the less-technically minded: 
https://mac.github.com/

So I would like to uninstall the original Git and install the mac.github 
one.

The original installation came with a file uninstall.sh 

Do I copy and paste the contents of uninstall.sh into the terminal window?

#!/bin/bash
if [ ! -r "/usr/local/git" ]; then
  echo "Git doesn't appear to be installed via this installer.  Aborting"
  exit 1
fi
echo "This will uninstall git by removing /usr/local/git/**/*, 
/etc/paths.d/git, /etc/manpaths.d/git"
printf "Type 'yes' if you are sure you wish to continue: "
read response
if [ "$response" == "yes" ]; then
  sudo rm -rf /usr/local/git/
  sudo rm /etc/paths.d/git
  sudo rm /etc/manpaths.d/git
  pkgutil --packages | grep GitOSX.Installer | xargs -I {} sudo pkgutil 
--forget 
{}
  echo "Uninstalled"
else
  echo "Aborted"
  exit 1
fi

exit 0


Hope you can advise!

Thank you,
Liz

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to