Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Recreating pr


poopoodice
 Share

Recommended Posts

I've made a pr a few days ago, but I was dumb that I made the changes directly to the 1.16.x branch of the forked repository, and that means if I want to make another pr which is on another branch I've specifically created, it will have the files changed and the commits of other contents. Since I can't really create two forks, the only way I can think of is cancel the pr, re-setup my fork and local repo, and create the pr again. But apparently it causes the maintainer's trouble. Is there a way to fix this?

Thanks.

Link to comment
Share on other sites

git remote add upstream git@github.com:MinecraftForge/MinecraftForge.git # assuming you use SSH, otherwise use the HTTPS URL
git checkout -b mycoolfeaturebranch upstream/1.16.x
git push -u origin mycoolfeaturebranch

 

You now have the state of the "original" 1.16.x branch in the Forge repo as "mycoolfeaturebranch" locally and pushed as mycoolfeaturebranch to your Forge fork.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.