from Hacker News

Ask HN: I don't want to rely on GitHub as the only storage of my opensource code

by 3dfan on 1/12/19, 5:11 PM with 10 comments

I am currently hosting my open source contributions on GitHub.

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.

What is a good way to make sure I can still access my repos no matter what happens to GitHub?

I don't want to host them locally. Too much of a hassle.

What's an easy way to mirror them to other places?

  • by aaronbrethorst on 1/12/19, 5:16 PM

        git push backup master
    
    Where backup is a remote that exists literally anywhere else. Amazon, Gitlab, and Bitbucket are three choices that come to mind.
  • by karmakaze on 1/13/19, 2:58 AM

    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.

    The top search result[0] are GitLab docs for pushing to or pulling from another repository for mirroring.

    [0] https://www.google.com/search?q=github+gitlab+mirror

  • by stephen82 on 1/12/19, 11:00 PM

    How about setting up your own server and use https://github.com/go-gitea/gitea to host your projects there?
  • by krapp on 1/12/19, 5:29 PM

    >I don't want to host them locally. Too much of a hassle.

    No it isn't. Just buy an external drive or something and copy your repos to it, done and done.