Git Flow Init命令无法识别-找不到命令

时间:2019-04-30 15:42:48

标签: windows git git-bash atlassian-sourcetree git-flow

我继承了公司以前的开发人员使用的工作站。在开始之前,IT部门没有擦除和重新配置笔记本电脑,我相信这可能就是为什么我遇到这些问题的原因。

我正在尝试从我的ConEmu终端运行git flow命令。好像已经安装并识别了git-flow,但是每次我尝试运行gitflow命令时,都会得到这样的打印输出

git flow init
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]showcommands) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]force) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]defaults) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]local) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]global) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]system) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]file) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]feature) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]bugfix) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]release) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]hotfix) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]support) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]tag) already exists
C:/Program Files/Git/usr/bin/gitflow-shFlags: line 398: tr: command not found
flags:WARN definition for ([no]help!) already exists
flags:FATAL unrecognized option (,)

我尝试为Windows安装最新版本的git,以查看是否会“修复” gitflow安装

我尝试了其他终端模拟器,例如Windows cmd和gitbash。

作为一种解决方法,我必须登录到我们的沙箱服务器之一,为Windows安装git,然后在其中运行git flow命令。

1 个答案:

答案 0 :(得分:1)

尝试重新安装git flow,它对我有用。

brew unlink git-flow-avh
brew reinstall git-flow