LoginSignup
27
1

More than 3 years have passed since last update.

あらゆるgitコマンドがエラーを吐く際の解決方法

Last updated at Posted at 2017-12-05

状況

あらゆるgitコマンドが同じエラーを吐くようになってしまった.

$ git --version

以下がエラーの内容.

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

コマンドラインツールが無いとのことなので,xcode-selectをインストールする

$ xcode-select --install

インストーラが出てくるのでそれに従えばインストールできる.

結果

$ git --version
git version 2.20.1 (Apple Git-117)

どうやらmac OSをSierraにアップデートした所為らしい.

27
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
1