gmp-cli

1.0.11 • Public • Published

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 merge develop into main
  • 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

Readme

Keywords

none

Package Sidebar

Install

npm i gmp-cli

Weekly Downloads

34

Version

1.0.11

License

MIT

Unpacked Size

4.02 kB

Total Files

5

Last publish

Collaborators

  • alexisamx