The git -osx-installer that you used should have installed git in /usr/local/git . See if you can cd into this directory. If you can, check that PATH set correctly by running echo $PATH from the terminal and making sure that you see /usr/local/git/bin in the included PATH . If not, you need to add it to your PATH .
Did the included shell script setup git PATH for non-terminal programs.sh ?
Update 1: How to start an included shell script
- Install the git -osx-installer disk image by double-clicking
git-1.7.3.5-x86_64-leopard.dmg , which should be located in your Downloads folder. - Open terminal from
/Applications/Utilities/Terminal - Type
cd /Volumes/Git 1.7.3.5 x86_64 Leopard/ - Type
./setup git PATH for non-terminal programs.sh and press Enter to start the shell script. Note. After entering ./setup you can press the Tab key and it will be autocomplete for you. - Open a new terminal and enter
echo $PATH - Confirm that you see
/usr/local/git/bin in PATH.
Update 2: Show git Who is the Master
Open a terminal and run the following commands:
echo "/usr/local/git/bin" > git sudo mv git /etc/paths.d
When you run sudo, it will ask for your OS X password.
After issuing these two commands, you can open a new terminal window and see /usr/local/git/bin when echo $PATH starts.
To do this, you need to have the following in /etc/profile , which it does by default:
if [ -x /usr/libexec/path_helper ]; then eval `/usr/libexec/path_helper -s` fi
Matthew Rankin Jan 18 2018-11-18T00: 00Z
source share