https://github.com/pgherveou/git-util
Breakdown commits into individual Pull Requests
https://github.com/pgherveou/git-util
git github pull-requests
Last synced: about 2 months ago
JSON representation
Breakdown commits into individual Pull Requests
- Host: GitHub
- URL: https://github.com/pgherveou/git-util
- Owner: pgherveou
- Created: 2017-04-20T03:56:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-06T21:51:05.000Z (over 7 years ago)
- Last Synced: 2025-07-10T23:56:19.863Z (12 months ago)
- Topics: git, github, pull-requests
- Language: TypeScript
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo provides commands to break down a big PR into child PRs while still working from a single branch.
## Install
```bash
npm install -g @pgherveou/git-util
```
## Prerequisites
- A gitub token with repo perimissions stored into `GITHUB_TOKEN` environment variable
### 1 generate-pull-requests
This command does the following:
- Create a feature branch `feature-important-stuff`
- Create child branchs for each commit that is not a fixup! e.g `important-stuff-1-of-n`, `important-stuff-2-of-n`
- Cherry pick fixup commits to their associated child branch
- Open your browser so you can edit each pull request using `feature-important-stuff` as the base branch.
### fixup-staged-files
This command create a fixup commit for each staged file.
You can re-run `generate-pull-requests` after that so that each modification get push to the child branch