git - 为什么不推荐使用 git flow 功能 checkout ?我应该改用什么?

标签 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.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

然而,issue #128在 GitHub 上的 repo 问题跟踪器中包含关于计划弃用 git flow feature checkout 的讨论。这是维护者评论的相关段落:

My thoughts

Checkout

  • With bash/zsh completion this command seems irrelevant but if you don't use completion it could be helpful.
  • I suggest dropping this command in a future release and add a warning per v1.8.0 that the command will be dropped on a future version (2.0?)

关于git - 为什么不推荐使用 git flow 功能 checkout ?我应该改用什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30372896/

相关文章:

java - 根据构建阶段强制执行不同的设置

git - 当您的原始存储库在 Git 中时,如何从 svn 进行部署

git - 获取 git log 以显示给定提交的 merge 提交者

git - "always" rebase 的陷阱是什么?

git - 为什么 git branch 没有显示一个分支?

c++ - GLEW 和 openGL 弃用

c++ - C++17 中已弃用的 std::is_literal_type

java - 弃用一组相关方法的最佳做法是什么?

git - 从 TeamCity 中的分支名称中删除斜线

git - 使用 git-flow 功能分支和 Gerrit 的工作流