nvie / gitflow

Git extensions to provide high-level repository operations for Vincent Driessen's branching model.
http://nvie.com/posts/a-successful-git-branching-model/
Other
26.63k stars 2.66k forks source link

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

Open harshadyeola opened 9 years ago

harshadyeola commented 9 years ago

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
josejlm2 commented 9 years ago

I also have the same problem.

srt32 commented 9 years ago

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

gavinengel commented 9 years ago

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

rn54n commented 7 years ago

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

alicanyuksel commented 3 days ago

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.