on-internet
← Community

How to create independent PRs after already committing to main

Stack Overflow ·

I recently forked the typeshed repo's main branch. I committed a fix to main and opened a PR. While the PR is awaiting review (which could take some time), I've found another bug. I've considered committing the fix to main and opening a second PR, but based on my understanding, this would pollute it with changes from PR #1. I realise I should have used a separate branch for each independent contribution. But I've already committed to main. How can I open PR #2 and hopefully clean up my fork setup, whilst PR #1 is still awaiting review? I'm afraid that resetting main or deleting the fork now wi

Comments

Sign in or sign up to comment and upvote.

No comments yet.