OVERCODE

[PhpStorm] OS X - Can't start Git: /usr/bin/git Probably the path to Git executable is not valid 본문

프로그래밍/Intellij idea

[PhpStorm] OS X - Can't start Git: /usr/bin/git Probably the path to Git executable is not valid

오버코드 2020. 12. 15. 17:25

I get this error in Android Studio:

Can't start Git: /usr/bin/git Probably the path to Git executable is not valid.

It gives me an option to fix it, where it takes me to the area in Android Studio to set the path to git. I see it is set to

/usr/bin/git

And I check that path, and that path is indeed the path to the git executable. Why is Android Studio unable to start git?

EDIT: When I try to use git commands in the Android Studio terminal it says:

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

 

OS 업그레이드 하고나서 발생한 문제인데

 

1. /usr/bin/git 경로에 git 이 잘 있음

2. git 명령어 쳐도 잘먹음

3. 그런데 phpStrom 에선 git 오류가 남.

 

나는 아래 방법으로 해결하였다.

 

You should agree explicitly to user's licence agreement.

This is how you should do it:

  1. Open terminal
  2. run the following command: sudo xcodebuild -license
  3. agree to the terms.

That's it! :)

 

xcode 사용자 라이센스 계약에 명시적으로 동의해야된단다.

위의 명령어 치고 쭉 다 읽은 다음 agree 치고 엔터.

 

(출처 : stackoverflow.com/questions/32661484/os-x-cant-start-git-usr-bin-git-probably-the-path-to-git-executable-is-not )


Comments