Visual Studio Code cannot detect installed git

后端 未结 21 2239
走了就别回头了
走了就别回头了 2020-11-30 21:54

Visual Studio Code reports \"It look like git is not installed on your system.\" when I try to switch to the git view. I know I have git installed and used by other git clie

21条回答
  •  再見小時候
    2020-11-30 22:39

    I faced this problem on MacOS High Sierra 10.13.5 after upgrading Xcode.

    When I run git command, I received below message:

    Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.

    After running sudo xcodebuild -license command, below message appears:

    You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.

    Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'

    Typing Enter key to open license agreements and typing space key to review details of it, until below message appears:

    By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel]

    The final step is simply typing agree to sign with the license agreement.


    After typing git command, we can check that VSCode detected git again.

提交回复
热议问题