如何自动对齐/同步分叉Github起源/主分支到上游/主? [英] How to automatically align/sync a forked Github origin/master branch to upstream/master?

查看:158
本文介绍了如何自动对齐/同步分叉Github起源/主分支到上游/主?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以自动同步我的分叉 Github存储库的远程主分支( origin / master )到原始的 Github存储库的主分支? ( upstream / master



我问,因为我想分叉远程 origin / master 在Github上的分支始终保持最新状态,这样我就可以通过不需要连续的 pull / rebase来节省时间& 上游存储库更改为我的分叉repo的主分支。

解决方案

存储库,但问题是如何?



在这个例子中,我使用


点击设置按钮后,您可以看到Webhooks&服务选项点击它。



然后您可以在右侧看到添加Webhook按钮,只需点击它即可。



点击添加Webhook按钮,详细信息页面将打开,所以详细页面yo可以看到有效负载url 。在其中输入


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.

解决方案

It is very easy to sync forked repository but question is how ?

In this example i am using WorldMapGenerator Repository

Go to your forked repository, you can see setting button click on it.

After clicking on setting button you can see Webhooks & services option in left menu click on it.

Then you can see Add Webhook Button on right side just click on it.

After clicking Add Webhook Button, details page will get open, so in detail page yo can see payload url. Enter http://backstroke.us url in it.

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

这篇关于如何自动对齐/同步分叉Github起源/主分支到上游/主?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆