I mean, you can do it from a technical standpoint, but some of them will have policies that conflict with that. IIRC, GitHub's ToS only lets you use the non-enterprise service for open-source software, so if you're just using it to store a ton of data as free personal cloud storage or filehosting, I imagine that at any moment, they might kick you and your data off.
I just...don't really see the point. I mean, for light use, most people have a reasonably peppy broadband connection today. There are various "free" — will presumably mine data, like who is using what — file-hosting services. For heavier stuff, you can get commercial Web hosting or a VPS or something like that that will let you push more data.
EDIT: Yeah, Codeberg explicitly prohibits it too in their ToS:
https://codeberg.org/Codeberg/org/src/branch/main/TermsOfUse.md
(1) By using Codeberg, you agree to adhere to the following rules when posting content (like repository contents, wiki articles, issue comments, etc.):
Public repository content shall be made available under a copyright licence which gives all natural and legal persons the following rights in the content:
- the right to use the content for any purpose, including both commercial and non-commercial purposes;
- the right to make unlimited copies of the content and redistribute those copies to others, with or without charge;
- the right to examine the content and determine how it works and/or how it was made;
- the right to make their own modifications to the content, to use the content with those modifications privately;
- and the right to redistribute copies of the content which include their own modifications, with or without charge.
Private repositories are only allowed for things required for FLOSS projects, like storing secrets, team-internal discussions or hiding projects from the public until they're ready for usage and/or contribution. They are also allowed for really small & personal stuff like your journal, config files, ideas or notes, but explicitly not as a personal cloud or media storage.
You might fly under their radar, but if they catch you, I assume that they're gonna boot you off.