Is there a way to automatically sync my forked Github repository's remote master branch (origin/master
) to an original Github repository's master branch? (upstream/master
)
I ask because I would like my forked remote origin/master
branch on Github to always stay up-to-date so that I could save time by not needing to continually pull / rebase & push upstream repository changes into my forked repo's master branch.
GitHub does not have such an automatic sync feature. However, it is trivial to add as a cron job on a server so that you don't have to do it manually. For instance:
Updating the @Keval Bhatt answer:
https://github.com/1egoman/backstroke/issues/60#issuecomment-318923158
Now you only need to access https://backstroke.us, login and add the links between the repositories, and the pull requests are created automatically:
Behind the scenes, https://backstroke.us will be setting up the GitHub webhooks to automatically pull updates with the https://backstroke.us website interface.
It is very easy to sync forked repository but question is how ?
In this example i am using WorldMapGenerator Repository
Now If any commit goes in main repository, then pull request will come in your forked repository.
That's it enjoy :)
For more details https://github.com/1egoman/backstroke