🚀 A command-line tool to simplify merging and pushing Git branches.
sudo npm install -g gmp-cli
Once installed, run the configuration command:
gmp
If it's your first time, you will need to initialize the configuration with:
npm run setup
This script will interactively prompt you for the full path to your amx1
folder.
General syntax:
gmp <repo> <branch-to-merge> <source-branch>
Example:
gmp my-awesome-repo develop main
This command will perform the following steps:
- Checkout the
main
branch - Pull to fetch the latest changes
- Checkout the
develop
branch and pull - Checkout back to
main
and mergedevelop
intomain
- Push the updated branch to the remote repository
Command | Description |
---|---|
npm run setup |
Run the initial configuration |
gmp -h |
Display help |
gmp -v |
Display the version |
- Bash
- Git
- jq (
sudo apt install jq
)
Clone the repository and run:
cd gmp-cli
npm install
npm run setup
MIT © Alexis Beaumont