Problem
PhpStorm prompts "Can't start Git"
Click "Fix it"
GitThe path is correct, click "Test"
It is possible to directly enter <strong>Git</strong> -v
in Terminal, but entering /usr/bin/<strong>Git</strong> -v
appears as follows Tip
<code>Agreeing to the Xcode/iOS license <strong>require</strong>s admin privileges, please re-run as root via sudo. </code>
plus sudo
is all it takes. But how to do it in PhpStorm?
Solution
<code>sudo xcodebuild -license </code>
Terminal prompt: Press the Enter key (enter) to open the license agreement
Terminal prompt: Press the "space" key to read the license agreement, press "q" without reading
The terminal prompt will appear: Enter agree , then enter
click "Test" in PhpStorm again, OK.
The above introduces the Git settings in PhpStorm, including require and Git content. I hope it will be helpful to friends who are interested in PHP tutorials.