新装了Xcode之后,使用终端git的 gs(git status)命令时会出现
Try executing this from a terminal:
sudo xcode-select --switch /Applications/Xcode.app
然后会有一个警告提示:
WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
此时输入密码,然后再gs一下就可以看到问题是否已经解决
原文:http://www.cnblogs.com/NINIiOS/p/3989850.html