Skip to content

feat(init): Add --shared flag for shareable git-flow config#109

Open
Xstoudi wants to merge 1 commit intogittower:mainfrom
Xstoudi:feature/auto-wiring
Open

feat(init): Add --shared flag for shareable git-flow config#109
Xstoudi wants to merge 1 commit intogittower:mainfrom
Xstoudi:feature/auto-wiring

Conversation

@Xstoudi
Copy link
Copy Markdown

@Xstoudi Xstoudi commented Apr 21, 2026

Adds --shared flag to git flow init to write configuration to a committable .gitflow file in the repository root, enabling teams to share git-flow settings via version control.

After writing, the command automatically wires include.path = ../.gitflow into the local .git/config so the configuration is active immediately. For teammates who clone the repo, any git-flow command auto-detects .gitflow and adds the include on first run — no manual git flow init required. Changes touch cmd/init.go, cmd/root.go, internal/config/config.go, internal/git/config.go, and internal/git/repo.go.

Closes #68

Writes configuration to .gitflow in the repository root instead of
.git/config, allowing teams to commit and share it via version
control. Automatically wires include.path in the local config after
writing, and auto-detects .gitflow on any git-flow command for
teammates who clone the repo without running git flow init.

Closes gittower#68
Signed-off-by: Xavier Stouder <xavier@stouder.io>
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

Successfully merging this pull request may close these issues.

Idea(s): standardize default config file/path in repo, and auto-init

1 participant