Hi,
I've been using git-flow now for some time, one thing that I haven't
quite managed to figure out though, is why `git flow feature finish`
does not delete a remote feature branch by default.
feature-finish deletes the remote branch if -F is passed:
https://github.com/nvie/gitflow/blob/develop/git-flow-feature#L260
https://github.com/nvie/gitflow/blob/develop/git-flow-feature#L343
It isn't really intuitive imo that fetch means "delete remote branch"
when used with the finish command, but that looks like the only way
gitflow does it for the user - the "summary of actions" does not list
deleting the remote in this circumstance though.
Most of the time though there's only one user working in a feature
branch (at least, IME, and even if there is more than one developer
the lead is the only one that's going to execute feature-finish). If a
feature branch has a remote tracking branch, it would seem logical to
delete the remote at the same time.
Or, perhaps, have a separate command for cleaning up already merged
branches similar to
http://devblog.springest.com/a-script-to-remove-old-git-branches
Am I missing something obvious - is the reason my current team has 30
remote feature branches which were published for review and are now
already merged to develop an indication of misuse of git flow?
Cheers,
AD