There are several points to this question.
Firstly, you do not need to install Xcode. Git installer works fine. However, if you want to use Git from Xcode - it expects to find the installation in / usr / local / bin. If you have your own Git installed elsewhere, I have a script that fixes this.
Secondly, this is the way to go. My Git path was used under /etc/paths.d/ . However, installing Lion overwrites the contents of this folder and the /etc/paths file. What happened to me and I got the same error. Resuming the path file fixes the problem.
Abizern Jul 25 2018-11-11T00: 00Z
source share