delete a 'feature' branch using gitflow without merging into master branch

I am using the Git GUI called ‘Souretree’ by Atlassian and in particular the ‘Gitflow’ module to manage various branches.

I just created a ‘release’ branch that I don’t want to merge back into either the master or develop branches. How do I get rid of it ? Can I just delete it ? My concern is that I mess up the gitflow config.

  • automatically rejecting a commit based on certain criteria
  • Merge branch in SourceTree
  • Git pre-commit hook failing in GitHub for mac (works on command line)
  • “Updates were rejected because the tag already exists” when attempting to push in SourceTree
  • Git/Sourcetree basic branching and merging
  • How to batch remove local branches in SourceTree, which remote equivalents have been already removed in the origin?
  • I have only made one commit to this branch which i don’t care about.

  • Where are good Git tutorials for SVN(Subversion) User?
  • How to auto deploying git repositories with submodules on AWS?
  • Git rm --cached and checkout
  • How can I revert specific files of a commit?
  • Is it possible to use custom hooks in gitlab 8 for project commit?
  • Pushing without committing
  • One Solution collect form web for “delete a 'feature' branch using gitflow without merging into master branch”

    It seems that I can just delete the branch according to the following sources:
    Evan Hahn

    To quote Evan:

    To trash a branch using git-flow , simply delete it like you’d
    normally delete a Git branch:

    git branch -D whatever/branch/you/wanna/delete

    Note that this does a
    forced delete, so anything you did on that branch will be lost. You
    can be safer with the lowercase -d flag instead.

    So using the sourcetree GUI interface i first changed to another branch ( in my case develop) and then simply right clicked on the release branch name in the list of branches in the left hand panel and selected Delete release/releaseName. This gave me the option to do so with as a Force Delete, which in my case was necessary as I wanted to delete the unmerged commits as well.

    Git Baby is a git and github fan, let's start git clone.