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

Feature/branch prefixes as subcommands #6463

Open 70853n opened 3 years ago

70853n commented 3 years ago

How to test

Example

$ git flow init
No branches exist yet. Base branches must be created now.
Branch name for production releases: [master] release
Branch name for "next release" development: [develop] integration

How to name your supporting branch prefixes?
Delimiter between prefix and name? [/] 
Feature branches? [feature] change
Release branches? [release] candidate
Hotfix branches? [hotfix] 
Support branches? [support] 
Version tag prefix? [] 
$ git flow help
usage: git flow <subcommand>

Available subcommands are:
    init    Initialize a new git repo with support for the branching model.
    change  Manage your change branches.
    candidate   Manage your candidate branches.
    hotfix  Manage your hotfix branches.
    support Manage your support branches.
    version Shows version information.

Try 'git flow <subcommand> help' for details.
70853n commented 3 years ago

I'm not sure whether I've overlooked some instances where the default subcommand name is not replaced, or I wasn't able to change that. Gotta look into it, some time, if anyone still cares about this project.

Example

$ git flow change start the-first-part-of-a-bigger-feature
Switched to a new branch 'change/the-first-part-of-a-bigger-feature'

Summary of actions:
- A new branch 'change/the-first-part-of-a-bigger-feature' was created, based on 'integration'
- You are now on branch 'change/the-first-part-of-a-bigger-feature'

Now, start committing on your feature. When done, use:

     git flow feature finish the-first-part-of-a-bigger-feature

Can someone think of an easy fix for that?

ChrisJStone commented 1 year ago

I working on updating a fork here feel free to submit an issue or pull request to see if we can get this implemented