LoginSignup
65

More than 5 years have passed since last update.

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

Last updated at Posted at 2016-09-21

先ほどmacOS Sierraにアップデートしてみました。
色々あるけどとりあえずgitが動かなくなったので解消メモです。

こっちにも書きました。

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

ってエラーが出ました。

El Capitanにしたらgitコマンド(CUI)が動かなくなった。の記事に助けられました。

全く同じ問題っぽいですね。

$ xcode-select --install

を実行するとインストーラが立ち上がるのであとは流れに任せれば完了です。

これでgitが動きました。

$ git
usage: git [--version] [--help] [-C <path>] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]
           ・
           ・(省略)
           ・

焦ったぁ。。。

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
What you can do with signing up
65