Git flow命令错误:'flow'不是git命令

时间:2022-08-28 15:27:00

I am very new to Git and am starting to learn the command line version. I believe my git flow is not installed correctly. I am running this from a pc.

我是Git的新手,我开始学习命令行版本。我相信我的git flow安装不正确。我是从电脑上运行的。

When i run following command:

当我运行以下命令时:

git flow feature start JamesTest

I get the following error:

我收到以下错误:

git: 'flow' is not a git command. See 'git --help'
Did you mean any of these?

git:'flow'不是git命令。看'git --help'你的意思是?

Looks like the git flow command is not being recognized from all paths? How do I fix this?

看起来没有从所有路径识别git flow命令?我该如何解决?

2 个解决方案

#1


10  

Git is installed but Gitflow is not. Gitflow is a Git extension and has to be installed separately.

Git已安装,但Gitflow未安装。 Gitflow是一个Git扩展,必须单独安装。

Install it as described on GitHub and you should be fine ;)

按照GitHub上的说明安装它,你应该没事;)

#2


2  

If you want to install Git Flow on Windows, do as follows (based on this instructions)

如果要在Windows上安装Git Flow,请执行以下操作(根据此说明)

  1. Clone the git flow repository

    克隆git flow存储库

    git clone --recursive git://github.com/nvie/gitflow.git
    
  2. Download the getopt archive and extract the getopt.exe file to the location where Git executable is installed (something like C:\Programs\Git\bin)

    下载getopt存档并将getopt.exe文件解压缩到安装Git可执行文件的位置(如C:\ Programs \ Git \ bin)

  3. Execute the following command, where the argument is the Git path installation (again, something like C:\Programs\Git). You don't need to specify the bin directory here.

    执行以下命令,其中参数是Git路径安装(再次,类似于C:\ Programs \ Git)。您不需要在此处指定bin目录。

    contrib\msysgit-install.cmd "C:\Programs\Git"
    

And that's it. Check that all is working using the command git flow

就是这样。使用命令git flow检查所有是否正常工作

#1


10  

Git is installed but Gitflow is not. Gitflow is a Git extension and has to be installed separately.

Git已安装,但Gitflow未安装。 Gitflow是一个Git扩展,必须单独安装。

Install it as described on GitHub and you should be fine ;)

按照GitHub上的说明安装它,你应该没事;)

#2


2  

If you want to install Git Flow on Windows, do as follows (based on this instructions)

如果要在Windows上安装Git Flow,请执行以下操作(根据此说明)

  1. Clone the git flow repository

    克隆git flow存储库

    git clone --recursive git://github.com/nvie/gitflow.git
    
  2. Download the getopt archive and extract the getopt.exe file to the location where Git executable is installed (something like C:\Programs\Git\bin)

    下载getopt存档并将getopt.exe文件解压缩到安装Git可执行文件的位置(如C:\ Programs \ Git \ bin)

  3. Execute the following command, where the argument is the Git path installation (again, something like C:\Programs\Git). You don't need to specify the bin directory here.

    执行以下命令,其中参数是Git路径安装(再次,类似于C:\ Programs \ Git)。您不需要在此处指定bin目录。

    contrib\msysgit-install.cmd "C:\Programs\Git"
    

And that's it. Check that all is working using the command git flow

就是这样。使用命令git flow检查所有是否正常工作