Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use the new git submodule deinit command added with 1.8.3.

Can someone give me step-by-step instructions on how to install and use the development version of git on mac OSX 10.7.5? The latest development version (1.8.3) is on github here. What's the easiest way to install and use it? Can I use a package manager to install directly from the repo HEAD? Do I have to compile from the source? How?

share|improve this question
up vote 2 down vote accepted

You can try installing Git (HEAD) using Homebrew by running brew install git --HEAD. This command will download the latest commit from the GitHub repository, compiles it and installs it, just like any other Homebrew package.

share|improve this answer

Using a package manager (like port or brew) will only install the latest release (currently, my port installed git is at

To be on the cutting edge, you'll need to get the latest code from github and build it yourself. There are plenty of sites specifying the steps - here's one, but you can find others.

share|improve this answer
Some package managers (like pip and cocoapods) let you install directly from the repo HEAD, which is why I asked about it. I'll check out your link, thanks. – yourfriendzak Apr 29 '13 at 5:30

Your Answer


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.