Ideally, I'd like to have two synchronized repositories, for no single point of failure, organizational or otherwise.
GitHub was down again
71–80 of 125 posts
Re: GitHub was down again
#72Don’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.
Re: GitHub was down again
#73What'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
#74What'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
#75What'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
#76What'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.
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
#77What'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.
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
#78https://gitea.io/en-us/ https://git.zx2c4.com/cgit/ https://about.gitlab.com/install/?version=ce
Re: GitHub was down again
#79Re: GitHub was down again
#80What'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...
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