64

I'm inexperienced with git-flow.

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

meager
  • 209,754
  • 38
  • 307
  • 315
atian25
  • 3,906
  • 6
  • 32
  • 58
  • 2
    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. – meager Aug 02 '12 at 13:39

3 Answers3

96

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
  • 14,875
  • 10
  • 56
  • 99
Greg Haskins
  • 6,124
  • 1
  • 24
  • 22
51

Or just use git-flow:

git flow feature delete your-feature-branch

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

Matthew
  • 7,831
  • 11
  • 56
  • 80
Peter van der Does
  • 12,574
  • 3
  • 34
  • 42
-3
git hf feature cancel -f

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

Nowaker
  • 11,112
  • 4
  • 47
  • 60