Hacker News new | ask | show | jobs
by ryandrake 3 hours ago
This is evidently not a popular opinion, but git repositories don’t need to be hosted on any platform. Your local repo is a complete copy and can be pulled and pushed from and to. If you really want a backup or “source of truth” copy, you can clone it anywhere you have shell access. We make so many simple things hard unnecessarily.
3 comments

That only works if you are only using Github as a place to store your code. I'm not the OP, and maybe their situation is different, but I want to continue getting sincere human PRs and issue reports on my projects, but want to reduce or eliminate the amount of AI produced spam.
Obligatory reminder that you can clone a git repo around your local filesystem and so on too. Same goes for other git operations as well.

https://thehorrors.org.uk/snippets/git-local-filesystem-remo...

If this was a viable option, OP would just private his GitHub repos, but it's pretty obvious that he wants to make them available publicly.
If they have a blog or use a static site generator they could host their github repos online and use a plugin or something to display them. Or even just post links to the repos. It might cause bandwidth issues for popular projects and you wouldn't have any of the "social" features like stars (which in this case would be a feature) but it should be possible. Depending on how the backend is set up you might not even need to put the repos in the web path at all.

But I'd still say just use Codeberg. And see if there's an option to turn off PRs wherever your projects are hosted.