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
Set your shell’s PATH variable first.
you should add this line to your .profile file
Close and Save the file.
Run the command into shell
You may wish to check the PATH variable changes:
Step 2: DownloadWe’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-220.127.116.11.tar.bz2
Step 3: Compile and Install
tar xzvf git-18.104.22.168.tar.bz2 cd git-22.214.171.124 ./configure – prefix=/usr/local make sudo make install cd ..
Confirm if Git is installed:
It should display:
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.