GG
A suite of binaries and scripts used to simplify and accelerate the Git workflow.
GG (Git Gateway) is a collection of command-line tools that extend and simplify Git workflows. From automated cherry-picking to complex branching strategies, GG accelerates common development tasks.
Components
ggp (Git Pull Policy)
Automates branch merging strategies:
# Automatic rebase or merge based on commit history
ggp origin/main
# Force rebase regardless of history
ggp --rebase origin/mainggch (Git Cherry-pick Helper)
Simplifies complex cherry-picking scenarios:
# Cherry-pick commits from feature branch to release
ggch feature-branch release-branch
# Interactive selection with git diff preview
ggch --interactiveggff (Git Find Findings)
Locate commits across repositories:
# Find commits containing specific keywords
ggff "bug fix"
# Search across multiple repositories
ggff --dir /path/to/repos "feature"Configuration
GG uses a YAML configuration file:
defaultBranch: main
remote: origin
cherryPick:
strategy: auto # auto, rebase, merge
confirm: true
backup: true