Git, a free, fast, and efficient distributed version control system! It should be used for iPhone or Mac based cocoa development.
Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server.Branching and merging are fast and easy to do.
Follow these simple instructions and you will get it setup within minutes .:)
Step 1: Set the PATH
Launch Terminal.app from the /Applications/Utilities
folder.
Set your shell’s PATH variable first.
you should add this line to your .profile file
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
Close and Save the file.
Run the command into shell
source ~/.profile
You may wish to check the PATH variable changes:
echo $PATH
Step 2: Download
We’re going to create a folder to contain the files we’re about to download and compile. If you want, you can delete this folder when you’re done, but keeping it around makes it easier to re-install (or uninstall) these apps later.Make the new folder & download the tar file:
mkdir ~/src cd ~/src url -O http://kernel.org/pub/software/scm/git/git-1.6.4.2.tar.bz2
Step 3: Compile and Install
tar xzvf git-1.6.4.2.tar.bz2 cd git-1.6.4.2 ./configure --prefix=/usr/local make sudo make install cd ..
Confirm if Git is installed:
which git
It should display:
/usr/local/bin/git
Now, type git
to get started.
If you encounter something different, you need to set your PATH correctly. Please try again above steps!
Please let us know if you need our help.
Good luck!
Team,
Mobisoft Infotech