You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
Automatically mirror an external repository by pulling at regular intervals (daily) #415
I want to take an arbitrary Git clone URL, give it to GitHub when creating a new repository, and have GitHub git pull the repository regularly, e.g. daily.
This would allow me to use GitHub's superior analysis features like contributor analysis and clean permalink URLs which other web interfaces do not have, so I can analyze projects which interest me but for which I do not control hooks.
Such repositories could even be "read only", such that the only update possible would be the daily pull, e.g. user pushes are forbidden. This way GitHub does not need to use so much storage.
You could even consider a magic username like mirrors to which those clones would be added, to provide a canonical mirror for each URL.
On the upside for GitHub, you'd get more traffic by using good content from other projects.
Non-git imports like mercurial and SVN would be great as well.
Reacted by Ryan McQuen, Suriyaa Sundararuban, Pavel Chervakov, Trilarion, Josh Hawkins, Cédric Belin, Axetroy, Syed Ali, ExE Boss, Neal McBurnett and 42 more
Reacted by TPS, Travis Clarke, user5145, amnotbananaama and Manuel
Reacted by Sorin Sbarnea, Travis Clarke, Ton Oguara and Viktor Szépe
I wouldn't mind having this feature as well, but instead of at a specified interval (although that would be fine) it would be cool to have some sort of reverse webhook. I develop locally using GitLab but push to GitHub to cater for a bunch of picky lovely users. GitLab does webhooks so it would be nice to use that to tickle a project URL at Github to get it to pull my repository just like it did when I set it up initially,
Reacted by TPS, Trilarion and Víctor Cuadrado Juan
Reacted by Alan-Liang, Omar Olivares Urrutia, Andru Cherny, Stéphane Lavergne, Alex Judy, Alexander Kovrigin, Tim Parenti, Nicolae Lupei, TPS, Fionn and 5 more
Reacted by Omar Olivares Urrutia, Stéphane Lavergne, Alex Judy, Wipe and TPS
Please don't +1, you're spamming others who follow this issue. Add an upvote using reactions. That said:
Can this be closed now that actions exist? Something like this should work after you import the repo if you put itin .github/workflows/mirror.yml or similar. Be sure to replace $REPO with the URL you want to clone:
If you can't add files to the Repo in question, create a new repo that just contains GitHub actions for mirroring other repos and give it access to deploy keys for each repo it will mirror as secrets.
Reacted by ExE Boss, Alwin Wang, Alex Ivanov, Mark Bennett, Vitaly Potyarkin, Earnest Ma, Astley Chen, Milkii Brewster, A. Mazzoccone, Simão Gomes Viana and 1 more
Please don't +1, you're spamming others who follow this issue. Add an upvote using reactions. That said:
Can this be closed now that actions exist? Something like this should work after you import the repo if you put itin .github/workflows/mirror.yml or similar. Be sure to replace $REPO with the URL you want to clone:
If you can't add files to the Repo in question, create a new repo that just contains GitHub actions for mirroring other repos and give it access to deploy keys for each repo it will mirror as secrets.
This is for GitHub repo pushing to some GitHub repo.
And you are saying if we want some GitHub repo to be pulling from some GitLab repo, we have to create an extra repo in GitHub. This is not that convenient. GitLab natively supports pushing and pull without creating any extra repo.
Reacted by ArnaudBienner, Cobalt, Cristian Le, Andriy Kushnir and Rohit Prasad
Activity
andrewfenn commentedon Mar 17, 2016
I also want this feature but for different reasons:
By having this feature I can avoid HG and Bitbucket while still being able to follow up on open source project's upstream fork that still does use it.
TPS commentedon Jul 5, 2016
@cirosantilli @andrewfenn: http://svn2github.com/ USED to do this externally specifically for SVN repos, & mirrors at https://github.com/svn2github?tab=repositories.
There's even some discussion of updating it to mirror the binaries, as well.😭 The source for mirroring single SVN repos is @ https://github.com/gabrys/svn2githubjamiecarl commentedon Jul 11, 2016
I wouldn't mind having this feature as well, but instead of at a specified interval (although that would be fine) it would be cool to have some sort of reverse webhook. I develop locally using GitLab but push to GitHub to cater for a bunch of
pickylovely users. GitLab does webhooks so it would be nice to use that to tickle a project URL at Github to get it to pull my repository just like it did when I set it up initially,cirosantilli commentedon Jul 11, 2016
@JAZ-013 I agree that would be cool. Open a separate issue for it.
jamiecarl commentedon Aug 2, 2016
No need. I wrote a script that sits in the middle. http://git.hazaarlabs.com/jamie/gitlab-sync
TPS commentedon Aug 2, 2016
Or, alternatively, for all us "
pickylovely users," https://github.com/JAZ-013/gitlab-sync. 😜stuartpb commentedon Nov 13, 2017
Looping in this Stack Overflow question about how GitHub used to do this, but no longer does.
theAkito commentedon Mar 21, 2019
4 years and still open. Sad.
smorimoto commentedon Nov 3, 2019
hle-iad commentedon Dec 4, 2019
SamWhited commentedon Dec 4, 2019
Please don't +1, you're spamming others who follow this issue. Add an upvote using reactions. That said:
Can this be closed now that actions exist? Something like this should work after you import the repo if you put itin
.github/workflows/mirror.ymlor similar. Be sure to replace$REPOwith the URL you want to clone:If you can't add files to the Repo in question, create a new repo that just contains GitHub actions for mirroring other repos and give it access to deploy keys for each repo it will mirror as secrets.
theAkito commentedon Dec 4, 2019
theAkito commentedon Dec 4, 2019
username7171 commentedon Jan 29, 2021
This is for GitHub repo pushing to some GitHub repo.
And you are saying if we want some GitHub repo to be pulling from some GitLab repo, we have to create an extra repo in GitHub. This is not that convenient. GitLab natively supports pushing and pull without creating any extra repo.