Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm going to borrow another computer for a while so I've copied my project directory to the new computer and now I need to install Git on it.

Is it possible to install Git and the Github GUI client on OSX Mountain Lion for a single user? Second question, how do I uninstall Git?

share|improve this question
    
When you say "for a single user", do you mean you don't have admin rights on that machine? If that is the case, things are probably going to be a bit difficult, at least with the Git OS X Installer. –  slhck Feb 3 '13 at 12:51
    
I have admin rights, I just don't want to "mess up" the user account that belongs to the owner of the computer by installing a bunch of applications. –  Oskar Feb 3 '13 at 12:52

1 Answer 1

up vote 1 down vote accepted

If you use the Git installer for OS X, it'll do a system-wide install. This means you need admin rights for it to run.

However, the installer will write everything to /usr/local/git. This path (/usr/local) is not used in a default OS X installation. Per the Filesystem Hierarchy Standard, you can place anything there which just belongs to one user, and safely remove it again without affecting anything else.

If you ever want to uninstall Git – at least the version from the Git Installer – run the following:

rm -rf /usr/local/git
rm /etc/paths.d/git
rm /etc/manpaths.d/git

The first folder is the one containing all the programs. paths.d/git is just a file that enables the git for every shell's path, and manpaths.d/git does the same for the manpage.

Removing the above files and folders will have no implications whatsoever for the other user accounts.


The GitHub for Mac application can simply be installed to /User/your-username/Applications instead of /Applications. You might have to create the folder if it doesn't exist yet.

Other users won't be aware of this application at all. Its settings will be stored in ~/Library, which also belongs to your user.

share|improve this answer
    
Is it the same if I install it using this instead? –  Oskar Feb 3 '13 at 13:01
1  
It's the exact same (installer) file—it even points to the Google Code repository. –  slhck Feb 3 '13 at 13:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.