gitflow icon indicating copy to clipboard operation
gitflow copied to clipboard

ability to delete/remove release/hotfix/features easily

Open tianon opened this issue 14 years ago • 61 comments

It would be great to have the ability to do something like git flow release delete v1.0.2, instead of git checkout develop && git branch -D release/v1.0.2 (which I'm not even sure correctly discards a release branch) and hoping no important steps were missed.

tianon avatar Aug 26 '10 07:08 tianon

That would be a good extra command.

PS: It is indeed the correct way to delete a branch. (Remember, git-flow doesn't do any hidden magic, it's just an implementation of the rules from the original blog post!)

nvie avatar Aug 26 '10 08:08 nvie

I would propose the following. If it is merged already in develop/master, but the branch pointer remains:

git flow release delete 1.0.2

To delete branched that are yet unmerged with develop/master (in order to avoid accidental deletion):

git flow release delete -f 1.0.2

nvie avatar Aug 26 '10 08:08 nvie

Ah, indeed. I would be quite happy with that functionality of the feature.

I was unsure about that being the correct procedure because it seemed like when I tried it, the commits I'd made to the deleted branch got merged into develop anyways, which really annoyed me, but I managed to take care of it and move along. Just to be clear, this would/should completely remove the entire branch and all its commits, given the -f flag, correct?

tianon avatar Aug 26 '10 09:08 tianon

Strictly speaking, it removes the branch object, which points to a commit (which points to a commit, which points to a commit, etc.). As long as you have any other branches pointing at one of those commits (like origin/feature/foo maybe), the commits will stick around. Otherwise, they'll be garbage collected eventually. That's just Git behaviour.

nvie avatar Aug 26 '10 09:08 nvie

Hmm, oh well. I must have screwed something up. Thanks for explaining, though!

tianon avatar Aug 26 '10 09:08 tianon

+1 this feature. I'm trying to use git-flow to use the release candidates as our sprint deliverables, to be pushed to the testing environment, while maintaining master as the production codebase. In other words, in our environment, most release candidates will NOT be getting 'finished' to go to master - but all should be able to... so once a production release has been identified, I'd like to end the other release branches...

dngreene avatar Dec 06 '11 18:12 dngreene

+1

kwerle avatar May 08 '12 15:05 kwerle

+1

ghost avatar May 10 '12 05:05 ghost

+1

nexeck avatar May 10 '12 07:05 nexeck

+1

billymeltdown avatar May 15 '12 13:05 billymeltdown

+1

douggrubba avatar May 15 '12 13:05 douggrubba

+1 and I decided to implement this on my fork, currently only in the develop branch. Also added the ability to remove the remote branch as well.

petervanderdoes avatar Jun 21 '12 15:06 petervanderdoes

+1 for this, is this feature supported now?

atian25 avatar Oct 26 '12 07:10 atian25

+1

Used this thread to figure out how to do it but would prefer built in method

DArrigoni avatar Oct 26 '12 22:10 DArrigoni

It's been 2 years now... any chance it will get done? It's a good feature, I think.

netcriptus avatar Oct 30 '12 13:10 netcriptus

+1

despairblue avatar Oct 31 '12 21:10 despairblue

+1

zubinmehta avatar Nov 09 '12 20:11 zubinmehta

+1

nzajt avatar Nov 16 '12 18:11 nzajt

Hello, it's already available in Peter van der Does fork with several other improvements.

baby-gnu avatar Nov 22 '12 18:11 baby-gnu

+1

RajuBhosale avatar Jan 02 '13 06:01 RajuBhosale

+1

snapshotpl avatar Jan 09 '13 11:01 snapshotpl

+1

dbaba avatar Jan 16 '13 05:01 dbaba

+1

jcamacho14 avatar Jan 18 '13 21:01 jcamacho14

+1

mcplusa avatar Jan 28 '13 16:01 mcplusa

+1

millejano avatar Jan 30 '13 11:01 millejano

+1

mborho avatar Feb 05 '13 10:02 mborho

+1

fehmicansaglam avatar Mar 11 '13 12:03 fehmicansaglam

+1

armanm avatar Mar 17 '13 09:03 armanm

+4 (myself and my team @ work)! ^_^

numeraltwo avatar Mar 22 '13 18:03 numeraltwo

+1

Frully avatar Mar 26 '13 06:03 Frully

+2

Sangoku avatar Mar 28 '13 15:03 Sangoku

@nrvs lolz :D :+1:

0xqd avatar Apr 10 '13 07:04 0xqd

+1

tarciozemel avatar Apr 11 '13 00:04 tarciozemel

:+1:

tullo avatar Apr 13 '13 14:04 tullo

+1

gandazgul avatar May 11 '13 15:05 gandazgul

:+1:

douglasresende avatar Jul 09 '13 17:07 douglasresende

+1

francesco-carrella avatar Jul 11 '13 10:07 francesco-carrella

+1

elcodedocle avatar Sep 21 '13 14:09 elcodedocle

+1

wmayner avatar Nov 20 '13 22:11 wmayner

+1

yeco avatar Nov 30 '13 00:11 yeco

+1

occasl avatar Jun 03 '14 00:06 occasl

+1

ipimpat avatar May 07 '15 01:05 ipimpat

+1

ethzero avatar Jun 09 '15 15:06 ethzero

This is implemented in avh edition.

tchemit avatar Jun 09 '15 15:06 tchemit

+100500

ishapkin avatar Jul 18 '16 13:07 ishapkin

+100501

hunaczech avatar Sep 30 '16 15:09 hunaczech

+1

piotrekzawada avatar Feb 13 '18 10:02 piotrekzawada

+1

Preen avatar Mar 06 '18 10:03 Preen

+1

apapegay-kimple avatar May 14 '18 06:05 apapegay-kimple

+1

jedmarcnocum avatar May 25 '18 13:05 jedmarcnocum

+1

Zanzi92 avatar Aug 08 '18 13:08 Zanzi92

+1

run26kimo avatar Aug 10 '18 02:08 run26kimo

Wow, can't believe this is still a thing. It's been almost 8 years waiting for this command.

yeco avatar Aug 10 '18 04:08 yeco

+1

diogoan avatar Sep 17 '18 22:09 diogoan

+1

srsalute avatar Apr 18 '19 12:04 srsalute

wow, after nine years, this is still a thing really need this feature

lisbethw1130 avatar May 09 '19 05:05 lisbethw1130

This is implemented in https://github.com/petervanderdoes/gitflow-avh It's backwards compatible with this version but adds many improvements and new features.

Disclaimer: I'm the project lead for Gitflow AVH Edition

petervanderdoes avatar May 09 '19 12:05 petervanderdoes

+1

gohackfelipe avatar Oct 17 '19 20:10 gohackfelipe

please, stop commenting just "+1", it's 2020 and Github already introduced emojis for this purpose 👍

geoom avatar Jan 10 '20 17:01 geoom

@geoom image

+1

ishapkin avatar May 04 '20 21:05 ishapkin

You can now use git flow <thing> delete <nameOfTheThing>

LeydenJar avatar Jun 01 '21 23:06 LeydenJar