73

I'm inexperienced with git-flow.

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

user229044
  • 232,980
  • 40
  • 330
  • 338
atian25
  • 4,166
  • 8
  • 37
  • 60
  • 3
    Always remember that Git flow commands are really just shortcuts for a series of regular Git commands. In the case of `feature start`, it's literally just switching to your development branch and starting a new branch. Understanding the commands that git-flow uses lets you very easily abandon the tool (which is pretty poor) and continue to use the workflow, which is much more valuable. – user229044 Aug 02 '12 at 13:39

3 Answers3

106

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 checkout master
Switched to branch 'master'
$ git branch -d feature/your-feature-name-here
Wex
  • 15,539
  • 10
  • 64
  • 107
Greg Haskins
  • 6,714
  • 2
  • 27
  • 22
62

Or just use git-flow:

git flow feature delete your-feature-branch

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

Matt
  • 9,068
  • 12
  • 64
  • 84
Peter van der Does
  • 14,018
  • 4
  • 38
  • 42
-3
git hf feature cancel -f

Use git hf help and git hf feature help to see the possibilities.

Nowaker
  • 12,154
  • 4
  • 56
  • 62