This directory contains comprehensive manpage-style documentation for all git-flow-next commands and configuration options.
- git-flow.1.md - Main git-flow command overview and global options
- git-flow-init.1.md - Repository initialization and workflow setup
- git-flow-config.1.md - Configuration management commands
- git-flow-integrate.1.md - Integrate a base branch into its parent
- git-flow-worktree.1.md - Worktree management for branches
- git-flow-feature.1.md - Feature branch management
- git-flow-release.1.md - Release branch management
- git-flow-hotfix.1.md - Hotfix branch management
- git-flow-overview.1.md - Repository workflow overview
- git-flow-completion.1.md - Shell completion script generation
- git-flow-shell-init.1.md - Shell integration script for directory switching
- gitflow-config.5.md - Complete configuration reference and examples
All documentation follows Unix manpage conventions:
- NAME - Brief command description
- SYNOPSIS - Command syntax and options
- DESCRIPTION - Detailed explanation of functionality
- OPTIONS - Complete flag and parameter reference
- EXAMPLES - Practical usage examples
- EXIT STATUS - Return codes and meanings
- SEE ALSO - Related commands and references
- NOTES - Important considerations and tips
- Bold for command names, options, and important terms
- Italics for parameters, placeholders, and emphasis
Code blocksfor configuration examples and commands- Clear section hierarchies with proper heading levels
The documentation covers all supported workflows:
Traditional git-flow with main, develop, feature/, release/, and hotfix/ branches.
Simplified workflow with main and feature/ branches only.
Multi-environment workflow with production, staging, main, feature/, and hotfix/ branches.
Fully customizable branch configurations through the config system.
git-flow-next generates commands dynamically based on configuration. The documentation covers:
- Standard topic types: feature, release, hotfix, support
- Custom topic types: Any user-defined topic branch configurations
- Shorthand commands: Context-aware shortcuts that work with any topic branch type
The configuration system documentation includes:
- Three-layer hierarchy: Branch defaults → Command overrides → CLI flags
- Complete option reference: All gitflow.* configuration keys
- Merge strategy guide: none, merge, rebase, squash strategies
- git-flow-avh compatibility: Automatic translation of legacy configurations
- Workflow examples: Complete configuration for each supported workflow
Documentation includes examples for:
- CI/CD integration - Using JSON output for automation
- IDE integration - Consuming structured workflow data
- Shell integration - Adding workflow status to prompts
- Git hooks - Customizing workflow behavior
See CODING_GUIDELINES.md for specific requirements about maintaining documentation currency.
# Install pandoc for best rendering
brew install pandoc
# View as formatted manpage
pandoc docs/git-flow.1.md | man -l -
# Or use a manpage viewer
man docs/git-flow.1.md# View in terminal
cat docs/git-flow.1.md | less
# View in browser (with Markdown viewer)
open docs/git-flow.1.md# Convert to HTML for web viewing
pandoc docs/git-flow.1.md -o docs/git-flow.1.htmlWhen adding new commands or changing existing ones:
- Update relevant manpages - Modify existing documentation
- Add new manpages - Create new .1.md files for new commands
- Update cross-references - Ensure SEE ALSO sections are current
- Test examples - Verify all examples work with current implementation
- Update this README - Keep the overview current
When contributing documentation:
- Follow existing formatting and structure conventions
- Include practical examples for all major use cases
- Cross-reference related commands and concepts
- Test all command examples for accuracy
- Consider different skill levels (beginner to advanced)
The authoritative documentation is maintained in this repository. Online versions may be generated from these source files but should not be edited directly.
For the most current documentation, always refer to the files in this directory.