我对Git非常陌生,正在学习命令行版本。我认为我的git flow没有正确安装。我是从一台电脑上运行这个命令的。
当我运行以下命令时:
git flow feature start JamesTest
我遇到了以下错误:
git: 'flow' 不是 git 命令。参见 'git --help'
你是不是想用下面的命令?
看起来 git flow 命令没有被识别为全局命令?我该怎么解决?
我对Git非常陌生,正在学习命令行版本。我认为我的git flow没有正确安装。我是从一台电脑上运行这个命令的。
当我运行以下命令时:
git flow feature start JamesTest
我遇到了以下错误:
git: 'flow' 不是 git 命令。参见 'git --help'
你是不是想用下面的命令?
看起来 git flow 命令没有被识别为全局命令?我该怎么解决?
您的计算机未安装Git Flow。只需运行以下命令:
macOS:
$ brew install git-flow-avh
Linux:
$ apt-get install git-flow
Windows:
$ wget -q -O - --no-check-certificate https://raw.github.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh install stable | bash
git flow init
,然后按照说明配置git流程。来源由Daniel Kummer提供的Git-Flow备忘单。brew install git-flow-avh
和 brew install git-flow
之间有什么区别吗? - Blues CluesClone the git flow repository
git clone --recursive git://github.com/nvie/gitflow.git
Download the getopt
archive and extract the getopt.exe
file to the location where Git executable is installed (something like C:\Programs\Git\bin)
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.
contrib\msysgit-install.cmd "C:\Programs\Git"
就是这样。使用命令git flow
检查是否一切正常。
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git-flow
export PATH=/opt/homebrew/bin:$PATH
git flow init
git flow
之前导出brew
:export PATH=/opt/homebrew/bin:$PATH
flow
不是 Git 的原生命令。它更像是一个 Git 插件或扩展。你使用的是哪个操作系统? - Chris