Install or not Git on Mac OS
I have a Mac OS X Version: 10.8.2 with Xcode 4.5.2.
I’m going to use git and I’m not sure if I have to install it or not.
- Running iOS Unit Tests from Command Line with Xcode 4.5
- How to set source (git link) for cocoapod dependency
- How can I see what files Git is going to push to the server in Xcode?
- Why does git add&remove the Storyboard <classes> section repeatedly?
- removing local git repositary from Xcode Project?
- How can I move files & folders using git in Xcode 4?
Searching on my computer, I’ve found it here:
If it’s needed I going to install this distribution. Is this the right one?
Is it necessary to install Git or can I use the one who comes with Xcode?
3 Solutions collect form web for “Install or not Git on Mac OS”
You only need to install a newer version of
git if the one that comes with Xcode doesn’t support a feature you want, or, of course, fixes a bug.
You need to install the Xcode Command Line package, in order access things like git from the standard path (
/usr/bin). You can do that within Xcode itself.
If you need to install a newer version of git, I would recommend the Macports version.
I rarely use the command line version of git on my Mac, preferring to do complex source control operations using the excellent, and free, Atlassian SourceTree app.
You can, however, do note, it’s an older version than the distribution. Personally, I use homebrew’s version of git
If you use Xcode and have no plan to uninstall Xcode 4.5.2 (or newer), then git is already available to you. The only thing is the git version bundled inside Xcode may not be the latest. Another thing is to use git (bundled inside Xcode) from the console or Terminal.app, then you’ll need to prefix your command with
See the man page for more detail.
On the other hand, if you want to use git without requiring Xcode, then download the git source, and build using the makefile will allow you to customize git to your needs.