Re:TCC – Tiny C Compiler
by jmh530 on Monday September 18, 2017 @09:34AM
(#15275748)
How would I go about creating a github mirror for some other project? I mean I get that I can just upload the project as it is, but what if I want it so that updates to the original are reflected automatically in the mirror?
[ Parent
| on HN ]
Create a repo on GitLab where mirroring is in the default featureset, then create a repo on GitHub, then create a hook so that when the GitLab mirror pulls in new commits, it pushes those to the GitHub "mirror".
Or just question why you're doing this to begin with.
Interesting.
The motivation to put up the mirror is that the creator of the original project has no interest in changing his project to work with the languages' package manager, but has endorsed others mirroring it. So I could mirror the original project on Github and add the files needed for the languages' package manager to work with it.
Re:TCC – Tiny C Compiler
by woodrowbarlow on Monday September 18, 2017 @10:30AM
(#15276250)
> To set up your own mirror, you can configure a post-receive hook on your official project repository to automatically push commits to a mirror repository on GitHub.com (or GitHub Enterprise).
source: https://help.github.com/articles/about-github-mirrors/
so, basically, it either needs to be a repository you own or you would need to do cron job polling from some third machine.