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.6k stars 2.66k forks source link

Push on feature finish #6417

Open davidgoate opened 6 years ago

davidgoate commented 6 years ago

Is there a specific workflow based reason that the git flow feature finish feature doesn't have a p flag like release finish to automatically push back to the target branch (such as develop) after?

Admittedly I can create some alias which automatically does the feature finish then does a git push origin develop after so something similar, but I was curious from an educational perspective why release finish warranted it but feature finish did not.

MaxBarraclough commented 5 years ago

Seconded.

This strikes me as the worst of both worlds: the commands cannot be relied upon to be 'local only', but neither can they be relied upon to be fully transactional and avoid unexpected states in the remote repo.

MaxBarraclough commented 4 years ago

Update: The feature has been implemented as git flow feature finish --push (you cannot use -p), here.

(Remember that this nvie/gitflow repo is the deprecated old repo that we should no longer use!)