8000 Add `force` option to init command · Issue #7 · gittower/git-flow-next · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add force option to init command #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alexrinass opened this issue Apr 17, 2025 · 1 comment
Open

Add force option to init command #7

alexrinass opened this issue Apr 17, 2025 · 1 comment

Comments

@alexrinass
Copy link
Contributor
alexrinass commented Apr 17, 2025

Add support for forcibly resetting gitflow branch configuration, allowing users to reconfigure git-flow branches even when they're already set up.

  • Implement the --force option for the git flow init command
  • The command should:
    1. Allow resetting of existing gitflow branch configuration when --force is specified
    2. Skip the "already configured" checks and allow reconfiguration
    3. Support both positive (--force) and negative (--no-force) variants
  • Command syntax addition:
    git flow init [-f | --force | --no-force] [other existing options]
    
  • Behavior:
    • With --force: Override existing configuration and prompt for new branch settings
    • With --no-force: Maintain existing behavior (don't override if already configured)
    • Default (no option specified): Don't override existing configuration
  • Error handling:
    • Provide appropriate warnings when overriding existing configuration
    • Ensure configuration consistency after forced initialization
  • Update documentation to reflect the new option
Copy link
linear bot commented Apr 17, 2025
TOWR-23 Add “force” option to init command

-f, --[no-][no]force  Force setting of gitflow branches, even if already configured

@alexrinass alexrinass changed the title Add “force” option to init command Add force option to init command Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0