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: 

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

The original installation came with a file uninstall.sh 

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

if [ ! -r "/usr/local/git" ]; then
  echo "Git doesn't appear to be installed via this installer.  Aborting"
  exit 1
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 
  echo "Uninstalled"
  echo "Aborted"
  exit 1

exit 0

Hope you can advise!

Thank you,

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