美文网首页
zsh: command not found: gitk

zsh: command not found: gitk

作者: 薛延祥 | 来源:发表于2020-04-01 09:57 被阅读0次

1、shell使用zsh后,发现git无法使用,报错

zsh: command not found: gitk

解决方案

1)首先更新git版本到最新版本

查看git版本:git --version

更新git版本:brew install git

2)查看git安装路径:which git

如果现实的路径是 /usr/bin/git ,那么需要改为local下的路径  /usr/bin/local/git,

brew doctor,查看是否有异常,如果有异常,那么需要建立连接

3)如果以上操作之后还是不行,可能需要手动安装 git-gui

安装后直接进入项目代码使用gitk命令即可看到可视化的提交记录

相关文章

网友评论

      本文标题:zsh: command not found: gitk

      本文链接:https://www.haomeiwen.com/subject/snhouhtx.html