zoukankan      html  css  js  c++  java
  • 解决zsh: command not found: gitk,将git路径/usr/bin/git修改为/usr/local/bin/git

    一、通过homebrew查看是否有异常(首先你得安装了Homebrew)

    $ brew doctor
    

    二、根据提示修改zsh配置

    Warning: Homebrew's sbin was not found in your PATH but you have installed
    formulae that put executables in /usr/local/sbin.
    Consider setting the PATH for example like so:
      echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc
    

    三、实际操作

    $ vim ~/.zshrc
    
    将 export PATH="/usr/local/sbin:$PATH 添加到配置文件中
    
    $ source ~/.zshrc
    
    $ which git 
    
    $ git --version
    

    四、如果还是不行只需要手动下载git-gui即可

    $ brew install git-gui
    

    也可参考链接:https://www.jianshu.com/p/7c6577dec016

    今天你学习了吗!!!
  • 相关阅读:
    Gitbook
    Docker命令
    sd
    文本三剑客
    2017.4.12下午
    2017.4.11下午
    2017.4.11上午
    2017.4.10下午
    2017.4.10上午
    2017.4.7下午
  • 原文地址:https://www.cnblogs.com/nayek/p/13289200.html
Copyright © 2011-2022 走看看