Gerald Sihotang
Gerald Sihotang

Reputation: 275

Create Pull Request from another Pull Request

I have a pull request named feature_A.
I want to create another pull request named feature_B.
But feature_B is almost the same as feature_A.
So I want to create pull request from branch feature_A and edit a little bit from there.
Is it possible to do like that and how to do it?

Upvotes: 1

Views: 133

Answers (1)

flaxel
flaxel

Reputation: 4607

First you have to go to your branch:

git checkout feature_A

Then you create the new branch to make the small changes:

git checkout -b feature_B

At the end you push the branch with the new changes into the repository and you can create your PR with the GitHub CLI.

git commit -a
git push --set-upstream origin feature_B
gh pr create

Upvotes: 2

Related Questions