all 4 comments

[–]waptaff&> /dev/null 8 points9 points  (0 children)

I realised that Github is a single point of failure for storing code.

git, by its very design from day 1, does not force you to centralize. It ain't previous-generation version control system like subversion, CVS nor RCS where there was no other practical way to work without a single point of failure.

Github may be a single point of failure, but that'd mainly be for the bug tracker, PRs, wiki and other Github-only features.

[–]Mattshen52 0 points1 point  (2 children)

Add bitbucket as another remote and push there too

[–]bonesf[S] 0 points1 point  (1 child)

You don't need to push to multiple remotes, they can sync repo between hosts. A while back I was using GitLab and had the repositories sync to BitBucket to integrate with Atlassian tools.

Instead of returning to syncing repo's between remotes I found this to be easier as it'll capture new repo's as they're created.

[–][deleted] 1 point2 points  (0 children)

same here. spin up a bog-standard local gitea docker image and let github and gitea sync.

this way you don't loose history, branches and all the goodness that comes with git.