gmp-cli
v1.0.11
Published
A CLI tool to easily merge and push Git branches
Readme
git-merge-push CLI
🚀 A command-line tool to simplify merging and pushing Git branches.
📦 Installation
sudo npm install -g gmp-cliOnce installed, run the configuration command:
gmpIf it's your first time, you will need to initialize the configuration with:
npm run setupThis script will interactively prompt you for the full path to your amx1 folder.
⚡️ Usage
General syntax:
gmp <repo> <branch-to-merge> <source-branch>Example:
gmp my-awesome-repo develop mainThis command will perform the following steps:
- Checkout the
mainbranch - Pull to fetch the latest changes
- Checkout the
developbranch and pull - Checkout back to
mainand mergedevelopintomain - Push the updated branch to the remote repository
🎯 Useful commands
| Command | Description |
| ------------------- | -------------------------------- |
| npm run setup | Run the initial configuration |
| gmp -h | Display help |
| gmp -v | Display the version |
📖 Dependencies
- Bash
- Git
- jq (
sudo apt install jq)
🔧 Development
Clone the repository and run:
cd gmp-cli
npm install
npm run setup📄 License
MIT © Alexis Beaumont
