I've forked a Mercurial repository, and now I want to pull the changes from the main repository into my fork. If this were git, I would do something like...
git remote add upstream <url> git pull upstream master
How do I do this sort of thing in Mercurial?
Go to your fork, click on Fetch upstream , and then click on Fetch and merge to directly sync your fork with its parent repo. You may also click on the Compare button to compare the changes before merging.
On GitHub, navigate to the main page of the forked repository that you want to sync with the upstream repository. Select the Fetch upstream drop-down. Review the details about the commits from the upstream repository, then click Fetch and merge.
You could also modify your hgrc file in your repo
default = ssh://[email protected]/<my_user>/<my_repo> upstream = ssh://[email protected]/<other_user>/<other_repo>
Then you can do
hg pull upstream
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With