gitflow icon indicating copy to clipboard operation
gitflow copied to clipboard

Rethinking of `feature publish`, should it be a partial feature release?

Open weynhamz opened this issue 11 years ago • 2 comments

Currenttly, git feature publish is accturaly an alias to git push which I do not think it is a correct behavior of publish. I think publish should mean that the work in feature branch has reached a state of workable but not yet been finished and is ready to be published into develop, but the original feature branch should still be keeped for further development.

Under this concept, the git flow feature publish should be a combination of the follwing comands.

git co develop
git merge --no-ff feature/feature-1
git co feature/feature-1
git merge --no-ff develop

weynhamz avatar Aug 22 '12 08:08 weynhamz

A better name for the current behavior of "publish" might be "share", i.e. git flow feature share pushes the current feature branch to origin so that others can join in the development of the feature.

ermshiperete avatar Sep 18 '12 09:09 ermshiperete

I think of git flow publish as a nicer git push that doesn’t make me write the set-upstream-to option manually! However, it refuses to do what I want most of the time because I always have work in progress that’s not committed yet. In the age of pull requests and continuous integration, I would argue that we don’t need a command that means «all my commits are ready, share it with the world after days», but rather «ok, I have some commits, push to central repo or fork to see CI and feedback».

merwok avatar Oct 11 '17 18:10 merwok