git-cherry-pick-interactive-cli
A CLI tool that provides an interactive way to cherry-pick commits from a specified branch.
Installation
-
Ensure you have Node.js installed on your machine. If not, download and install it from here.
-
Install the CLI globally using npm:
npm install -g @kud/git-cherry-pick-interactive-cli
Usage
git cherry-pick-interactive <branch-name>
- Replace
<branch-name>
with the name of the branch you want to cherry-pick commits from.
After executing the command, you will be presented with a list of commits from the specified branch. Select the commits you'd like to cherry-pick using the arrow keys and spacebar. Once your selections are made, press the Enter key to proceed with the cherry-picking process.
Features
- Interactive UI: Easily view and select commits with an intuitive interface.
- Clear Output: Each cherry-picked commit is displayed with its hash and message, providing clarity and transparency.
- Error Handling: Clear error messages and instructions for better usability.
Dependencies
-
chalk
: Provides terminal string styling. -
inquirer
: A collection of common interactive command-line interfaces. -
simple-git
: A lightweight interface for running git commands in any Node.js application. -
yargs
: Light-weight option parsing and command-line help creation. -
zx
: A tool for writing better scripts.
License
MIT