为什么不推荐使用git flow功能结帐?我应该用什么呢?

时间:2015-05-21 11:49:52

标签: git deprecated git-flow

我正在运行git版本2.3.6git flow版本1.8.0,当我运行git flow feature checkout <branch>之类的命令时,我收到了消息:

The command 'git flow feature checkout/co' will be deprecated per version 2.0.0

有谁知道为什么这会被弃用和/或我应该使用的呢?

1 个答案:

答案 0 :(得分:8)

根据您的问题(1.8.0)中指定的版本号,您指的是https://github.com/petervanderdoes/gitflow(而不是https://github.com/nvie/gitflow,其最新版本在撰写此答案时,是0.4.1)。克隆该repo并检查其日志后,运行

git log --grep=feature --grep=deprecated --all-match

我只找到了one relevant commit,这并没有激发git flow feature checkout的弃用。

但是,GitHub上repo的问题跟踪器中的issue #128包含有关git flow feature checkout的计划弃用的讨论。以下是维护者发表评论的相关段落:

  

我的想法

     

结帐

     
      
  • 使用bash / zsh完成此命令似乎无关紧要,但如果你   不要使用完成它可能会有所帮助。
  •   
  • 我建议在将来的版本中删除此命令并添加一个   每个v1.8.0警告该命令将被删除   版本(2.0?)
  •