IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    [解决方案]iterm2使用zsh后, git本地pull代码报错:git-sh-setup: No such file or directory

    mmfei发表于 2015-04-28 01:59:44
    love 0

    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

     



沪ICP备19023445号-2号
友情链接