Skip to main content
added 1 characters in body
Source Link

Just download the original git package. The installer will install git under /usr/local/git (you need to deactivate security options to run the installer).

There is a preinstalled git wrapper in /usr/bin used by Xcode which does not work without installing Xcode. You need to run /usr/local/git/bin/git explicit or change the PATH variable to contain /usr/local/git/bin before /usr/bin!

Create/edit your ~/.bashrcprofile with the following:

PATH=/usr/local/git/bin:$PATH
export PATH

Just download the original git package. The installer will install git under /usr/local/git (you need to deactivate security options to run the installer).

There is a preinstalled git wrapper in /usr/bin used by Xcode which does not work without installing Xcode. You need to run /usr/local/git/bin/git explicit or change the PATH variable to contain /usr/local/git/bin before /usr/bin!

Create/edit your ~/.bashrc with the following:

PATH=/usr/local/git/bin:$PATH
export PATH

Just download the original git package. The installer will install git under /usr/local/git (you need to deactivate security options to run the installer).

There is a preinstalled git wrapper in /usr/bin used by Xcode which does not work without installing Xcode. You need to run /usr/local/git/bin/git explicit or change the PATH variable to contain /usr/local/git/bin before /usr/bin!

Create/edit your ~/.profile with the following:

PATH=/usr/local/git/bin:$PATH
export PATH
EDIT: add PATH at first
Source Link

Just download the original git package. The installer will install git under /usr/local/git (you need to deactivate security options to run the installer).

There is a preinstalled git wrapper in /usr/bin used by Xcode which does not work without installing Xcode. You need to run /usr/local/git/bin/git explicit or change the PATH variable to contain /usr/local/git/bin before /usr/bin!

Create/edit your ~/.bashrc with the following:

PATH=/usr/local/git/bin:$PATH
export PATH

Just download the original git package. The installer will install git under /usr/local/git (you need to deactivate security options to run the installer).

There is a preinstalled git wrapper in /usr/bin used by Xcode which does not work without installing Xcode. You need to run /usr/local/git/bin/git explicit or change the PATH variable to contain /usr/local/git/bin before /usr/bin!

Just download the original git package. The installer will install git under /usr/local/git (you need to deactivate security options to run the installer).

There is a preinstalled git wrapper in /usr/bin used by Xcode which does not work without installing Xcode. You need to run /usr/local/git/bin/git explicit or change the PATH variable to contain /usr/local/git/bin before /usr/bin!

Create/edit your ~/.bashrc with the following:

PATH=/usr/local/git/bin:$PATH
export PATH
Source Link

Just download the original git package. The installer will install git under /usr/local/git (you need to deactivate security options to run the installer).

There is a preinstalled git wrapper in /usr/bin used by Xcode which does not work without installing Xcode. You need to run /usr/local/git/bin/git explicit or change the PATH variable to contain /usr/local/git/bin before /usr/bin!