git-automerge

What is git-automerge?

git-automerge is a command-line tool to automate merging multiple remote branches into a new temporary branch, and create tags for deployment or release workflows. It supports environment-specific configurations and flexible branch matching.

Features

Example Configuration (automerge-config.yaml)

production:
  base: main
  branches:
    - "feature-*"
    - "hotfix-*"
  tag_prefix: "prod-"

staging:
  base: develop
  branches:
    - "staging-*"
  tag_prefix: false

Basic Usage

Run the tool with environment argument:

git automerge --env=production

Or select environment interactively:

git automerge

Initialize example config file:

git automerge init

Installation

Install via curl or wget:

curl -sSL https://raw.githubusercontent.com/git-automerge/automerge/main/install.sh | sudo bash

# or

wget -qO - https://raw.githubusercontent.com/git-automerge/automerge/main/install.sh | sudo bash