https://developer.apple.com/swift/blog/?id=14
↑にあるXcodeを入れて、gitコマンド打ったらこんな↓メッセージががが
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
なのでこの↓コマンド打って
$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
$ git
こんな↓メッセージが
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'
IMPORTANT: BY USING THIS SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE FOLLOWING APPLE TERMS:
〜中略〜
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が息を吹き返します。
焦った…