I am currently hosting my open source contributions on GitHub.<p>I think it would be foolish to think that GitHub will be around and be trustworthy forever. At some point it will go down like every other project does.<p>What is a good way to make sure I can still access my repos no matter what happens to GitHub?<p>I don't want to host them locally. Too much of a hassle.<p>What's an easy way to mirror them to other places?
<p><pre><code> git push backup master
</code></pre>
Where <i>backup</i> is a remote that exists literally anywhere else. Amazon, Gitlab, and Bitbucket are three choices that come to mind.
I would suggest using either GitHub or GitLab as primary and mirror on the other. I prefer the issue management of GitLab so use that as my primary.<p>The top search result[0] are GitLab docs for pushing to or pulling from another repository for mirroring.<p>[0] <a href="https://www.google.com/search?q=github+gitlab+mirror" rel="nofollow">https://www.google.com/search?q=github+gitlab+mirror</a>
How about setting up your own server and use <a href="https://github.com/go-gitea/gitea" rel="nofollow">https://github.com/go-gitea/gitea</a> to host your projects there?
>I don't want to host them locally. Too much of a hassle.<p>No it isn't. Just buy an external drive or something and copy your repos to it, done and done.