是否有撤消 git-flow 功能启动的命令?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11778413/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 14:17:30  来源:igfitidea点击:

Is there a command to undo git-flow feature start?

gitgit-flow

提问by atian25

I'm inexperienced with git-flow.

我对 git-flow 缺乏经验。

Is there a command to undo git-flow feature start?

有撤销命令git-flow feature start吗?

回答by Greg Haskins

Since git-flow just wraps regular git functionality, how about simply deleting the new branch (assuming you have no changes in there you want saved)?

由于 git-flow 只包含常规的 git 功能,那么简单地删除新分支如何(假设您没有想要保存的更改)?

$ git checkout master
Switched to branch 'master'
$ git branch -d feature/your-feature-name-here

回答by Peter van der Does

Or just use git-flow:

或者只是使用 git-flow:

git flow feature delete your-feature-branch

Note that the feature/prefix is omitted when using this command

注意feature/使用该命令时省略前缀

回答by Nowaker

git hf feature cancel -f

Use git hf helpand git hf feature helpto see the possibilities.

使用git hf helpgit hf feature help查看可能性。