Syncing a Fork Repo. #21892
-
To sync my fork with the main repo someone mentioned: Click “New Pull Request”, then set the “head” branch and fork you want to pull the changes from, and set the “base” branch and fork you want to pull the changes to. Click “Compare across forks” to do so I am trying to understand is this process done on the actual github master repo or on the actual github fork repo (or either?) Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
To contribute back to the original repo that you forked from, you need to create the pull request on the original repo. Here are the official docs from GitHub on Pull Requests https://help.github.com/articles/about-pull-requests/ I hope that helps |
Beta Was this translation helpful? Give feedback.
-
Yout link is broken. As I am understanging there are two types of Pull Requests. There is the one that you mentioned to contribute back and there is also a pull request to update the fork from the main repo. It is the second Pull Request I am interested in when I use Compare Across Forks. I am wondering which site I should choose the head and base on so that I have a proper sync (the main or the fork.) Thank you, Joshei |
Beta Was this translation helpful? Give feedback.
-
Hi @joshei, This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information. As you’ll notice, your Topic is now in the How to use Git and GitHub board. No action is needed on your part; you can continue the conversation as normal here. Let me know if you have any other questions or if I can help with anything else. Cheers! |
Beta Was this translation helpful? Give feedback.
-
@joshei Let me know if I’ve misinterpreted your question, as I’ve read it you want to sync your fork of a remote repository through GitHub’s UI with a pull request? If so I’ll list the steps to do so below: As an example let’s say I’ve previously forked GitHub’s gemoji repository and now my fork is outdated, I’d see something like this when navigating to my own fork:
From here you want to click Compare , GitHub will tell you _“There isn’t anthing to compare.” _so click on the hyperlink text saying Try switching the base for your comparison.. Now you’ve inverted base and head of the comparison you can click Create pull request , give it a name, create the request and merge it in. |
Beta Was this translation helpful? Give feedback.
-
That’s what I was wondering, the site is my own fork that I use! Thanks, Joshei |
Beta Was this translation helpful? Give feedback.
@joshei Let me know if I’ve misinterpreted your question, as I’ve read it you want to sync your fork of a remote repository through GitHub’s UI with a pull request? If so I’ll list the steps to do so below:
As an example let’s say I’ve previously forked GitHub’s gemoji repository and now my fork is outdated, I’d see something like this when navigating to my own fork:
From here you want to click Compare , GitHub will tell you _“There isn’t anthing to compare.” _so click on the hyperlink text saying Try switching the base for your comparison.. Now you’ve inverted base and head of the comparison you can click Create pull request , give it a name, create the req…