Automatically mirroring a GitHub repo

两盒软妹~` 提交于 2019-12-03 06:26:50

Interesting question, considering all Eclipse repos are mirrored on GitHub.

But, as illustrated by the recent (April 2013) article from Wayne, the re is no automatic GitHub way to mirror a repo.

As far as I know, GitHub provides no mechanism to schedule a regular pull (correct me if I’m wrong), which means that it would become our responsibility to push to the GitHub clone.

See also bug 402183.

So a script on a VPS (ie, something you setup) remains the surest way to implement this.

Building on "HowTo mirror your git repository on Github", you would need your own local clone, with a script which would:

  • regularly pull from the GitHub repo
  • push to the mirror on Github

Update 2015 (2 years later): a tool like beefsack/git-mirror (in go) is:

designed to create and serve read-only mirrors of your Git repositories locally or wherever you choose.
A recent GitHub outage reinforces the fact that developers shouldn't be relying on a single remote for hosting code.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!