git pull的时候会报错:
/Library/Developer/CommandLineTools/usr/libexec/git-core/git-pull: line 11: git-sh-setup: No such file or directory
原因是我的iterm2 把shell换成了zsh..
修复方式 , 在shell执行:(请根据自己的items切换目录)
cd /Applications/iTerm.app/Contents/MacOS mv iTerm iTerm-bin cat > iTerm <<EOF #!/bin/sh unset PATH \${0}-bin EOF chmod +x iTerm