Git Client For Mac Os X Lion
Since OS X 10.7 Lion and the introduction of the Auto-Save and Versions features (which automatically records the history of files), some Git commands like 'rebase' might fail on Mac OS systems. When performing a large rebase with several commits and many changed files, the rebase process can. If your download hasn't started, click here to download manually. The current source code release is version 2.19.1. If you want the newer version, you can build it from the source code.
On Mac. I have installed 'brew' using terminal, now I tried to install 'git' with the command: 'brew install git'. But terminal says 'Now install Xcode: http://developer.Apple.com/technologies/xcode.HTML'
So I go to this page, but I found that I have to pay (at least) 99$/year to get 'xcode'.
Is there a free version of xcode to download from Apple site?If not, is there a way to install 'git' without 'xcode'?
studiohack♦migrated from stackoverflow.comAug 13 '11 at 9:18
Install Git On Mac Os
This question came from our site for professional and enthusiast programmers.
5 Answers
Xcode 3.2.6 is free. It works on OS X Snow Leopard(10.6) or later. You have to be a registered Apple Developer to download it. It is also free to register.
Xcode 4.1 is also free. But it works only OS X Lion(10.7). You can download Xcode 4.1 from Mac App Store.
If you are using OS X Lion, you can use Xcode 4.1 or Xcode 3.2.6 for free.
Mac Os Git Client
To answer the question as posed: get the OSX Installer for Git. I've used it several times. Works just fine, and doesn't require Xcode.
Here's a way to install git on Mac OS X without XCode.
Git's official web site provides an installer : http://git-scm.com/download/mac
After installing git, you also have to add its directory to your path :echo 'PATH=/usr/local/git/bin:$PATH' >> ~/.bash_profilesource ~/.bash_profile
Adding the directory to the path will prevent Mac OS X from aksing you to install XCode each time you type git
in the terminal.
Credits goes to Bobby Allen and to GoZoner's answer on SO.
Sign up to be an Apple Developer, XCode is free from them through the Apple Developer Connection.
Download Xcode 4 for Free
Xcode 4 is a free download for all members of the iOS and Mac Developer Programs. Log in to your account to begin the download.
Brew wants to download source and compile it locally. That requires build tools, and where you get them is with the Apple developer software. So it wants Xcode.
Git Client For Mac Os X Lion Download
You can download a pre-compiled and ready-to-install version of git here instead.