https://github.com/kud/git-cherry-pick-interactive-cli
A CLI tool that provides an interactive way to cherry-pick commits from a specified branch.
https://github.com/kud/git-cherry-pick-interactive-cli
cherry-pick git github
Last synced: 10 months ago
JSON representation
A CLI tool that provides an interactive way to cherry-pick commits from a specified branch.
- Host: GitHub
- URL: https://github.com/kud/git-cherry-pick-interactive-cli
- Owner: kud
- Created: 2023-09-25T14:28:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-25T16:13:07.000Z (over 2 years ago)
- Last Synced: 2024-04-14T12:57:11.691Z (almost 2 years ago)
- Topics: cherry-pick, git, github
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@kud/git-cherry-pick-interactive-cli
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `git-cherry-pick-interactive-cli`
A CLI tool that provides an interactive way to cherry-pick commits from a specified branch.
[](https://asciinema.org/a/lSFWbYVyDRzQLFillzlAX6uX1)
## Installation
1. Ensure you have Node.js installed on your machine. If not, download and install it from [here](https://nodejs.org/).
2. Install the CLI globally using npm:
```bash
npm install -g @kud/git-cherry-pick-interactive-cli
```
## Usage
```bash
git cherry-pick-interactive
```
- Replace `` 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