gmp-cli
v1.0.11
Published
A CLI tool to easily merge and push Git branches
Downloads
608
Readme
git-merge-push CLI
🚀 A command-line tool to simplify merging and pushing Git branches.
📦 Installation
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.
⚡️ Usage
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
🎯 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