gitflow icon indicating copy to clipboard operation
gitflow copied to clipboard

git-flow does not delete remote branch when published release is finished

Open harshadyeola opened this issue 10 years ago • 5 comments

git flow does not delete remote branch when a release which is published and then finished. It deletes release branch on local but not on remote

╰─± git flow release finish v3.1.12 
Switched to branch 'master'
Merge made by the 'recursive' strategy.
 ee/cli/plugins/example.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Deleted branch release/v3.1.12 (was 254971c).

Summary of actions:
- Latest objects have been fetched from 'origin'
- Release branch has been merged into 'master'
- The release was tagged 'v3.1.12'
- Release branch has been back-merged into 'develop'
- Release branch 'release/v3.1.12' has been deleted

harshadyeola avatar May 25 '15 08:05 harshadyeola

I also have the same problem.

josejlm2 avatar Jun 19 '15 16:06 josejlm2

Are you using the push flag (https://github.com/nvie/gitflow/blob/master/git-flow-release#L193) ? It seems that if the push flag is flipped to true, then part of the logic is to attempt to delete the remote branch (after pushing).

Reference: https://github.com/nvie/gitflow/blob/master/git-flow-release#L269-L280

srt32 avatar Jul 21 '15 19:07 srt32

according to this thread, you can kill the remote feature branch as well with: git flow feature finish -F.

gavinengel avatar Sep 23 '15 14:09 gavinengel

I had the same problem with git flow release finish 1.0.0 After pushing my tags with git push --tags I run git push origin :release/1.0.0 and then my release remote branch was deleted on gitlab repo

rn54n avatar Sep 13 '17 21:09 rn54n

Sorry for the notification after 7 years :)

You can also run git flow release finish -p [VERSION] This command will fetch, push and delete branch in question.

alicanyuksel avatar Oct 29 '24 19:10 alicanyuksel

Closing all issues as I'm archiving this repo. git-flow lives on at git-flow-next if you're still using it. Thanks for reporting!

nvie avatar Oct 14 '25 09:10 nvie