I ran
xcode-select --install
and everything worked for me.
error running git
原文:http://www.cnblogs.com/goodspeed/p/7529925.html