How can I change base fork on GitHub?

Viewed 5637

I've forked a repo to create a new project. The new project is now indipendent and I want to change the base fork to the head fork when creating PRs by default, in order to avoid mistakes.

enter image description here

How can I do that on GitHub?

4 Answers

You'll creating a PR from a fork using the browser, the upstream repository will always be the default base when creating a PR from a fork. To change this behaviour you'd have use a browser add-on to change the Compare page URL.

https://github.com/<OWNER>/<BASE REPO>/compare/<BRANCH>...<FORK REPO>:<BRANCH>
https://github.com/<YOUR>/<FORK REPO>/compare/<BRANCH>...<FORK REPO>:<BRANCH>
Related