Create a PR to merge a fork’s changes using Github CLI

Sharat Naik
Aug 25, 2021
Photo by Yancy Min on Unsplash

Let’s say personal_project/repo_name is forked from parent_project/repo_name and personal_project/repo_name:test_gh needs to be merged with parent_project/repo_name:master, then the following command is what you are looking for

gh pr create -R parent_project/repo_name --base master --head personal_project:test_gh --title “test github cli”

--

--

Sharat Naik
0 Followers

Software Engineer 3 | Cisco | Boeing