Karls.Gitflow.Tool 0.0.14

dotnet tool install --global Karls.Gitflow.Tool --version 0.0.14
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Karls.Gitflow.Tool --version 0.0.14
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Karls.Gitflow.Tool&version=0.0.14
                    
nuke :add-package Karls.Gitflow.Tool --version 0.0.14
                    

Git flow commands as a global .NET tool

A modern .NET command-line tool for managing Git branches using the Gitflow branching model. This tool is a reimplementation of parts of gitflow-avh. It isn't 100% compatible, but provides similar functionality with some additional features.

Installation

To install the Karls.Gitflow tool globally, run the following command:

dotnet tool install -g Karls.Gitflow.Tool

Note: If other git flow tools are installed, they may take precedence in your PATH.

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

Feature branches are used to develop new features and are branched off from the develop branch. They are merged back into develop when finished.

# 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

Release branches are used to prepare for a new production release. They are branched off from develop and merged into both main and develop when finished. A tag is also created on main.

# 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

Hotfix branches are used to quickly patch production releases. They are branched off from main and merged into both main and develop when finished. A tag is also created on main.

# 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"

Custom features

Push Command

The git flow push command pushes the main and develop branches, along with all tags, to the remote repository. This is useful for ensuring that your local changes are reflected in the remote repository after finishing releases or hotfixes.

# Push main, develop, and tags to remote
git flow push

Tag Message Template

When finishing releases or hotfixes, you can now set a custom tag message template using the configuration option tagmessage. This allows you to customize the message associated with tags created during these operations without needing to specify it each time.

# Set a custom tag message template
git flow config set tagmessage "Version {version} released on {date}"

When you finish a release or hotfix, the {version} placeholder will be replaced with the version number, and {date} will be replaced with the current date.

Product 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 97 5/31/2026
0.0.13 123 3/31/2026
0.0.12 116 3/21/2026
0.0.11 126 3/15/2026
0.0.10 114 3/4/2026
0.0.9 114 3/1/2026
0.0.8 120 2/8/2026
0.0.7 137 1/5/2026
0.0.6 137 1/4/2026
0.0.5 133 1/4/2026
0.0.4 124 1/4/2026
0.0.3 122 1/3/2026
0.0.2 124 1/3/2026
0.0.1 553 1/3/2026