-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
## Description | ||
|
||
- A GitHub CLI extension to cherry-pick a PR's merged commit based on target branch. | ||
- It will be useful when you are using to cherry-pick a PR, which is merged to the main branch, to the release branch. | ||
|
||
![image](https://github.com/user-attachments/assets/bd95beeb-3366-46a4-b1de-c4825c7f6fc5) | ||
|
||
|
||
## Installation | ||
|
||
```shell | ||
gh extension install 134130/gh-cherry-pick | ||
``` | ||
|
||
## Usage | ||
|
||
- `gh cherry-pick -pr <pr_number> -onto <target_branch> [-merge auto|squash|rebase] [-push]` to cherry-pick a PR based on target branch. It determines the merge strategy based on the original PR's merge strategy. | ||
- `gh cherry-pick -pr <pr_number> -onto <target_branch> -merge squash` to cherry-pick a PR's merged commit based on target branch. | ||
- `gh cherry-pick -pr <pr_number> -onto <target_branch> -merge rebase` to cherry-pick all the commits from a PR based on target branch. |