Skip to main content

Gitflow

Features, releases and hotfixes, each on a predictable path. Tower sets up the classic Gitflow structure and keeps every branch in sync.

The branch structure, set up in one click

  • main (or master) Trunk
  • develop Base
  • feature, release, and hotfix branches
Gitflow in Tower Workflows
Gitflow in Tower Workflows

How It Works

Tower Workflows with Gitflow

Getting up and running is simple!

  1. Tower Workflows - Workflow picker with Gitflow options shown
    Tower Workflows - Workflow picker with Gitflow options shown

    Choose a Gitflow Preset

    Tower Workflows supports the following Gitflow presets:

    • Tower's default git-flow preset
    • The classic git-flow with the CLI tool
    • The more modern git-flow-next fork
  2. Tower Workflows – Choosing the Downstream Merge Strategy for Gitflow
    Tower Workflows – Choosing the Downstream Merge Strategy for Gitflow

    Customize it!

    Start with a Gitflow preset, then tailor everything to your team's exact needs.

    Tower Workflows lets you fine-tune every aspect of your branching process:

    • Add and remove Base and Topic branches
    • Keep branches updated by defining their parent
    • Define upstream/downstream merge strategies
    • Enable or disable merge commit creation
    • Enable or disable tag creation when integrating changes
  3. Tower Workflows - Finish a Gitflow Feature
    Tower Workflows - Finish a Gitflow Feature

    Begin and Finalize Your Task Pro

    To begin, click the "Start..." option. This instantly creates and checks out a dedicated feature branch for your work.

    When complete, click "Finish..." to integrate your changes. Upon a successful merge (e.g., into "develop"), your local branch will be automatically deleted.

Tower offering to integrate changes from the parent branch, reporting no conflicts
Tower offering to integrate changes from the parent branch, reporting no conflicts

Keeping Branches in Sync

With the parent branch set up, Tower can easily notify you whenever it's time to update your topic branch and inform you if any merge conflicts will occur during the process.

What is Gitflow?

Gitflow is a rigid, release-based branching model that uses two long-lived main branches: main (for production-ready code) and develop (for integrating new features). Development occurs on feature branches off of develop. When a release is planned, a release branch is created from develop for final testing and bug fixes. Urgent fixes to the production code are made on dedicated hotfix branches off of main. This structure is ideal for projects with scheduled, versioned releases.

Why use Gitflow?

  1. Supports Parallel Development: The dedicated develop branch ensures that ongoing feature work is completely isolated from the stable, production-ready code in main.
  2. Clear Release Cycle: It provides a highly structured process for creating, managing, and finalizing major versioned releases using distinct release branches.
  3. Dedicated Hotfix Channel: The separate hotfix branches allow urgent production bugs to be addressed and deployed immediately without disrupting the in-progress feature development on the develop branch.

Try Tower Workflows Today

Download the trial and start designing the perfect branching workflow for your project.