Karls.Gitflow.Tool
0.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global Karls.Gitflow.Tool --version 0.0.2
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Karls.Gitflow.Tool --version 0.0.2
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Karls.Gitflow.Tool&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Karls.Gitflow.Tool --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Karls.Gitflow
A .NET 10 reimplementation of gitflow-avh, providing a modern command-line tool for managing Git branches using the Gitflow branching model.
Features
- Feature branches - Develop new features in isolation
- Bugfix branches - Fix bugs targeting the develop branch
- Release branches - Prepare releases with version bumps and final fixes
- Hotfix branches - Quick fixes for production issues
- Support branches - Long-term support for older versions
Supported Operations
| Branch Type | list | start | finish | publish | delete |
|---|---|---|---|---|---|
| Feature | Y | Y | Y | Y | Y |
| Bugfix | Y | Y | Y | Y | Y |
| Release | Y | Y | Y | Y | Y |
| Hotfix | Y | Y | Y | Y | Y |
| Support | Y | Y | - | - | Y |
Installation
dotnet tool install -g Karls.Gitflow.Tool
Usage
Initialize Gitflow
# Interactive initialization
git-flow init
# Use default settings
git-flow init -d
# Specify options
git-flow init --main main --develop develop
Feature Branches
# List all feature branches
git-flow feature list
# Start a new feature
git-flow feature start my-feature
# Finish a feature (merges to develop)
git-flow feature finish my-feature
# Publish feature to remote
git-flow feature publish my-feature
# Delete a feature branch
git-flow feature delete my-feature
Release Branches
# Start a release
git-flow release start 1.0.0
# Finish a release (merges to main AND develop, creates tag)
git-flow release finish 1.0.0 -m "Release 1.0.0"
# Publish release to remote
git-flow release publish 1.0.0
Hotfix Branches
# Start a hotfix from main
git-flow hotfix start 1.0.1
# Finish a hotfix (merges to main AND develop, creates tag)
git-flow hotfix finish 1.0.1 -m "Hotfix 1.0.1"
Configuration
# List current configuration
git-flow config list
# Set a configuration value
git-flow config set feature feat/
Branch Auto-Detection
When on a gitflow branch, you can omit the branch name for finish, publish, and delete commands:
# While on feature/my-feature branch
git-flow feature finish # Automatically detects "my-feature"
Finish Options
| Option | Description |
|---|---|
-k, --keep |
Keep the branch after finishing |
-F, --fetch |
Fetch from origin before finishing |
-p, --push |
Push to origin after finishing |
-S, --squash |
Squash commits during merge |
Release/Hotfix Specific Options
| Option | Description |
|---|---|
-m, --message |
Tag message |
-n, --notag |
Don't create a tag |
-b, --nobackmerge |
Don't merge back to develop |
Project Structure
src/
Karls.Gitflow.Core/ # Core library with gitflow logic
Karls.Gitflow.Tool/ # CLI application
test/
Karls.Gitflow.Core.Tests/ # Unit tests for core library
Karls.Gitflow.Tool.Tests/ # E2E tests for CLI
Karls.Gitflow.TestHelpers/ # Shared test utilities
Building from Source
# Build
dotnet build
# Run tests
dotnet test
# Run the tool locally
dotnet run --project src/Karls.Gitflow.Tool -- init -d
Requirements
- .NET 10 SDK
- Git installed and available in PATH
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.14 | 187 | 5/31/2026 |
| 0.0.13 | 138 | 3/31/2026 |
| 0.0.12 | 131 | 3/21/2026 |
| 0.0.11 | 139 | 3/15/2026 |
| 0.0.10 | 130 | 3/4/2026 |
| 0.0.9 | 129 | 3/1/2026 |
| 0.0.8 | 131 | 2/8/2026 |
| 0.0.7 | 151 | 1/5/2026 |
| 0.0.6 | 147 | 1/4/2026 |
| 0.0.5 | 149 | 1/4/2026 |
| 0.0.4 | 139 | 1/4/2026 |
| 0.0.3 | 136 | 1/3/2026 |
| 0.0.2 | 140 | 1/3/2026 |
| 0.0.1 | 889 | 1/3/2026 |