我正在运行git
版本2.3.6
和git flow
版本1.8.0
,当我运行诸如git flow feature checkout <branch>
的命令时,会得到以下消息:
The command 'git flow feature checkout/co' will be deprecated per version 2.0.0
有人知道为什么这个被弃用了吗?或者有什么替代方案可以使用吗?
我正在运行git
版本2.3.6
和git flow
版本1.8.0
,当我运行诸如git flow feature checkout <branch>
的命令时,会得到以下消息:
The command 'git flow feature checkout/co' will be deprecated per version 2.0.0
git log --grep=feature --grep=deprecated --all-match
我只找到了一个相关的提交,它并不能说明git flow feature checkout
被废弃的原因。
然而,在GitHub上的仓库问题跟踪器中问题#128包含了关于计划废弃git flow feature checkout
的讨论。以下是维护者在评论中提到的相关段落:
我的想法
Checkout
- 使用bash/zsh补全后,此命令似乎不再重要,但如果您不使用补全,则可能有所帮助。
- 我建议在未来的版本中删除此命令,并在v1.8.0中添加警告,说明该命令将在未来版本(2.0?)中删除。
git checkout <prefix>/<branch>
。我只是计划将其用作别名,作为一个简短的形式,我不必输入前缀。我可以通过更复杂的别名来解决这个问题。 - Valagit flow feature checkout
和git checkout
(不带标志)。 - jub0bsgit flow feature checkout
的优点是您不必包含分支前缀(通常为feature /
,但不限于此)。这仍然非常相似,但是当为git cof JIRA-123
等简短形式创建别名时,这意味着只需转发到git flow feature checkout
,而不需要编写一个小shell脚本来处理参数并将前缀(feature /
)添加到分支名称上。 - Vala
git flow
命令行实用程序。如果有帮助的话,我正在运行Ubuntu 15.04
并使用aptitude install git-flow
安装它,这被aptitude报告为版本1.8.0-1
,运行git flow version
打印出1.8.0 (AVH Edition)
。我不认为我添加了git flow
特定的PPA或其他内容,所以我猜它在标准的Ubuntu软件包中可用。基于“AVH Edition”,看起来就是这个:https://github.com/petervanderdoes/gitflow - Vala