LoginSignup
0
4

More than 1 year has passed since last update.

Mac でのgit導入に際して(xcodeのライセンス認証)

Last updated at Posted at 2021-12-26

macでgitを導入するときに少しつまづいたので備忘録的に解決法を残しておく。

まずターミナルで

git --version 

とコマンドを入力してgitが入っているかとバージョンを確認しようとすると

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

とのメッセージが出てきた。
どうやらxcodeのライセンス許可がいるらしい。

ターミナルで

sudo xcodebuild -license

を実行し、macのパスワードを入力
何度かスペースを押して承諾していくと最後に

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]

と出てくるのでターミナルに

agree

と入力し完了。

再び

git --version

を実行すると

git version 2.32.0 (Apple Git-132)

と表示され見事使えるようになった。

0
4
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
0
4