我在跑 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
有谁知道为什么这会被弃用和/或我应该改用什么?
最佳答案
根据您问题中指定的版本号 (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/