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.
feature-*)git automerge init command to generate example configproduction:
base: main
branches:
- "feature-*"
- "hotfix-*"
tag_prefix: "prod-"
staging:
base: develop
branches:
- "staging-*"
tag_prefix: false
Run the tool with environment argument:
git automerge --env=production
Or select environment interactively:
git automerge
Initialize example config file:
git automerge init
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