Install Git on Mac OS X. There are several ways to install Git on a Mac. In fact, if you've installed XCode (or it's Command Line Tools), Git may already be installed. The simplest way to install Git on Mac OS X is to use a project named 'Git OS X installer', which is hosted on Google Code. As of this writing (June 14, 2010), this GUI installer is very up to date, with a recent release on May 7, 2010. After having read quite a few discussion on this topic I have realized that recent version of git seems not working on old mac. I am using a intelcoreduo mini mac 2006 (10.6.8) in which I have python 2.7.9 is installed. However if try to detect the git version installed (2.5.3) by typing 'git --version' on Terminal, I get the message Illegal instruction I have tried to instal different versions of git but the only one that seems good enough (according to several threads) is 1.8.4.2 that unfortunately is not available in the 'installer mode'. I have therefore downloaded git-1.8.4.2.tar.gz that I don't know how to handle it. Is there anyone around so kind to tell me step by step what to do and/or if there is another solution to the problem? Thanks in advance. If you are in an old OSX like me (10.6.8), go to this site: and install it with this command:' /usr/bin/ruby -e '$(curl -fsSL Now, try to got to: and install from there the GIT. Hope this helps! But I had some errors. ![]() And fix them by using this simple, amazing little script from the fella Moncef Belyamani @: and works like a charm. Here is the link to his script(customizable!!) @ Now, if I do: git --version it reports: git version 2.8.4 Great! Wish you Luck too! Install Git on Mac OS X There are several ways to install Git on a Mac. In fact, if you've installed XCode (or it's Command Line Tools), Git may already be installed. To find out, open a terminal and enter git --version. $ git --version git version 2.7.0 (Apple Git-66) Apple actually maintain and ship, but it tends to lag behind mainstream Git by several major versions. You may want to install a newer version of Git using one of the methods below: Git for Mac Installer The easiest way to install Git on a Mac is via the stand-alone installer: • Download the latest. • Follow the prompts to install Git. • Open a terminal and verify the installation was successful by typing git --version: $ git --version git version 2.9.2 • Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create: $ git config --global user.name 'Emma Paris' $ git config --global user.email '[email protected]' • (Optional) To make Git remember your username and password when working with HTTPS repositories,. Install Git with Homebrew If you have to manage packages on OS X, you can follow these instructions to install Git: • Open your terminal and install Git using Homebrew: $ brew install git • Verify the installation was successful by typing which git --version: $ git --version git version 2.9.2 • Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create: $ git config --global user.name 'Emma Paris' $ git config --global user.email '[email protected]' • (Optional) To make Git remember your username and password when working with HTTPS repositories, install the. Install Git with MacPorts If you have to manage packages on OS X, you can follow these instructions to install Git: • Open your terminal and update MacPorts: $ sudo port selfupdate • Search for the latest available Git ports and variants: $ port search git $ port variants git • Install Git with bash completion, the OS X keychain helper, and the docs: $ sudo port install git +bash_completion+credential_osxkeychain+doc • Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create: $ git config --global user.name 'Emma Paris' $ git config --global user.email '[email protected]' • (Optional) To make Git remember your username and password when working with HTTPS repositories, configure the git-credential-osxkeychain helper. Install the git-credential-osxkeychain helper Bitbucket supports pushing and pulling your Git repositories over both SSH and HTTPS. To work with a private repository over HTTPS, you must supply a username and password each time you push or pull. The git-credential-osxkeychain helper allows you to cache your username and password in the OSX keychain, so you don't have to retype it each time.
0 Comments
Leave a Reply. |