git_osx_installer icon indicating copy to clipboard operation
git_osx_installer copied to clipboard

Installation instructions are incorrect for later MACOS

Open tommiyau opened this issue 3 years ago • 2 comments

The installation instructions recommend the below however this is not possible to perform on later MACs as the /usr/bin directory is protected and you can not rename the stubs. Easiest solution is to edit the user .zprofile file and include /usr/local/git/bin into the PATH. This will correct the issue for a single user.

When you run git, you might see this message:

'The "git" command requires the command line developer
tools. Would you like to install the tools now?"

This is because OS X ships with stubs, and these stubs are taking precedence over /usr/local/bin.

To resolve, run the following:

sudo mv /usr/bin/git /usr/bin/git-system

tommiyau avatar Jun 09 '22 22:06 tommiyau

how should I install git on my pc

Walitaisaac avatar Jun 13 '22 07:06 Walitaisaac

sudo mv /usr/bin/git /usr/bin/git-system

Mwoodin123 avatar Jul 08 '22 21:07 Mwoodin123