git_osx_installer
git_osx_installer copied to clipboard
Installation instructions are incorrect for later MACOS
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
how should I install git on my pc
sudo mv /usr/bin/git /usr/bin/git-system