Live data from Hacker News

GitHub was down again

githubstatus.com

71–80 of 125 posts

Re: GitHub was down again

#71
What's the easiest way to duplicate all your Github repositories, with history, somewhere else?

Ideally, I'd like to have two synchronized repositories, for no single point of failure, organizational or otherwise.

Re: GitHub was down again

#72
post #24

Don’t host yourself, it’s impossible to meet the reliability of the professionals

I used to agree. Now I work with a locally hosted github. It is down all the time and sometimes it just deletes all of the work from the past day. I thought it wasn't possible to do much worse, but I was obviously wrong.

At work I'm managing a gitlab instance for 15k users and 5k projects. Uptime is 100% since 1 year except for few minutes of planned downtimes every month for the monthly upgrade. To be honest I expected it to be a lot harder and run into troubles ... But I always find answers quickly in gitlab doc or forum

Re: GitHub was down again

#73
post #71

What's the easiest way to duplicate all your Github repositories, with history, somewhere else? Ideally, I'd like to have two synchronized repositories, for no single point of failure, organizational or otherwise.

    git remote set-url --add origin git@somewhere.else:my-project
This will make it so that every time you push to "origin", it'll push twice, to two places. You can repeat this to add a third or more.

Re: GitHub was down again

#74
post #71

What's the easiest way to duplicate all your Github repositories, with history, somewhere else? Ideally, I'd like to have two synchronized repositories, for no single point of failure, organizational or otherwise.

You could probably use GitHub actions to push any commits and branches to GitLab or anywhere else.

Re: GitHub was down again

#75
post #71

What's the easiest way to duplicate all your Github repositories, with history, somewhere else? Ideally, I'd like to have two synchronized repositories, for no single point of failure, organizational or otherwise.

    git add remote NAME URL
    git push NAME
It will not transfer GitHub specific content (issues, PE, wiki, etc.), though.

Re: GitHub was down again

#76
post #71

What's the easiest way to duplicate all your Github repositories, with history, somewhere else? Ideally, I'd like to have two synchronized repositories, for no single point of failure, organizational or otherwise.

Gitlab has a feature set for this that's automated but it may be rolled under a paid plan if you want it to be bidirectional.

Building this in git itself is not hard at all, and there's likely a script or plugin for gogs or gitea.

Re: GitHub was down again

#77
post #71

What's the easiest way to duplicate all your Github repositories, with history, somewhere else? Ideally, I'd like to have two synchronized repositories, for no single point of failure, organizational or otherwise.

Run git on a personal server[1]? It's not as complicated as you might think. Probably much more usable to setup gitlab.

Then set up the alternative remote on your repos.

[1]https://www.linux.com/training-tutorials/how-run-your-own-gi...

Re: GitHub was down again

#79
post #2

The Latest commits don't appear in the commits tab

Yeah, I'm seeing the same. The branch reflects the new commit, but the PR open for that branch does not show it.

I’ve had this before. Closing and reopening the PR does seem to do the trick sometimes.

Re: GitHub was down again

#80
post #77
post #71

What's the easiest way to duplicate all your Github repositories, with history, somewhere else? Ideally, I'd like to have two synchronized repositories, for no single point of failure, organizational or otherwise.

Run git on a personal server[1]? It's not as complicated as you might think. Probably much more usable to setup gitlab. Then set up the alternative remote on your repos. [1] https://www.linux.com/training-tutorials/how-run-your-own-gi...

I posted this on another thread. If you only want the commits, something like this works,

    ssh user@git.example.com
    mkdir project-1.git
    cd project-1.git
    git init —-bare
    exit
    git remote add alternate user@git.example.com:project-1.git
All you need is SSH
Post reply on HN