
There are a couple ways to install git subtree on mac depending on how you installed git on your system.

Instead, this post is simply about installing subtree on Mac and Ubuntu. If you want that you can read the documentation or one of the nice writeups. But, this post isn’t about how great subtree is or an into to using it. Many people use subtree as a replacement for submodules. It’s similar to submodules but allows you to share commits and content between repos rather than pointers to install other repos. Now you can continue to use whatever front end application you like while also being able to issue commands from the command line.Git subtree is a git helper to combine and manage multiple repos in one project. Open a new session and issue the git command. Permitting all is well, you should see a screen similar to what’s above. Once the installation is complete, you’ll need to close all active Terminal sessions. Once setup is completed, you should be good to go. Note that since the files are being installed in /usr/local you will need root access – that is, you’ll need to enter the administrator’s password during the setup procedure. The Git OS X Installer is a typical OS X setup program, so simply walk through the steps that the installer provides. The most recent version at the time of this post is 1.8.0 and fully works with Mountain Lion. Note that the latest version is at the top of the list. The Git OS X Installer is an open source project hosted on Google Code that makes it incredibly easy to install Git without interfering with any of your front end applications and without needing to install larger development tools.Īll of the versions are accessible via the downloads page and all mention Snow Leopard, but are compatible with all Intel processors. If that’s the case and you’d rather not install the full Xcode development suite (because it does include the command line utility), there is an alternative. As with most software that offers a command line variant, I occasionally end up using a Terminal session to manage some of my Git repositories.ĭepending on what other applications you have installed on your system, you may not actually have command line access to Git. When sharing my WordPress Developer Toolbox, I mentioned that GitBox is my Git client of choice.

For The TL DR version, you can download Git For OS X in its Google Code Repository.
