Ask HN: GitHub mirror

6 points by lukasm ↗ HN
Is there a GitHub mirror somewhere?

My boxen setup is failing, because

``` Cloning into '/opt/boxen/nodenv'... fatal: unable to access 'https://github.com/wfarr/nodenv/': Failed connect to github.com:443; Operation timed out

```

I believe this is caused by DDOS. Any suggestion?

8 comments

[ 3.0 ms ] story [ 32.1 ms ] thread
Wait. I guess.
"Sorry, we'll have to hold off on the job interview until your github resume stops erroring out."

People: have a backup plan.

GitHub: putting the "centralised" back into "DVCS".
The could be DDOSing RPC forever.
Unfortunately, I don't know of any 'upstream' mirror.

However, I've configured my projects to be mirrored on several locations with one easy command:

    git remote set-url origin --push --add <a remote>
    git remote set-url origin --push --add <another remote>
Basically, when you `git push origin master`, it will go to both <a remote> and <another remote> at the same time. Once it's configured, there's no workflow change.

I typically mirror my code with GitHub and BitBucket using this setup.

Git is distributed. Any up-to-date copy if the repo can be used as the deploy source. Likewise, if you have all the changes you need to deploy, you can set up your own Git server pretty quickly, then push there and reconfigure your deploy mechanism to pull from your Git server.

DigitalOcean has a useful reasonably complete guide: https://www.digitalocean.com/community/tutorials/how-to-set-...