LoginSignup
27
9

More than 3 years have passed since last update.

macOS CatalinaにしたらGitコマンドが動かなくなった

Last updated at Posted at 2019-10-15

さっそくCatalinaにアップデートしてみましたが、恒例のやつです。
Gitコマンドが動かなくなったのでまたメモです。内容は全く同じ。

毎年やってる(笑)けど、ハマったときの検索ワードがOSアップデートによっても変わってくるのでまた残しておきます。

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

以下のコマンドで直ります

$ xcode-select --install

インストーラーが立ち上がるのでインストールしましょう。

ちなみにこのコマンドを実行と、今回はこんな感じのエラーも同時に出てましたが気にせず大丈夫です。

xcode-select: note: install requested for command line developer tools

無事にインストールできました。

$ git version
git version 2.21.0 (Apple Git-122)
27
9
2

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
9