A forge like Codeberg is great for collaboration, but if you mean private as in just-for-yourself, pushing to a bare repo on just about anything will get it done. No need for a software forge. If you already sync files somehow, like some dropbox equivelant, put bare repos on there and push/pull from there. That said, forgejo is very easy to self-host and the identical UI to Codeberg.
A forge like Codeberg is great for collaboration, but if you mean private as in just-for-yourself, pushing to a bare repo on just about anything will get it done. No need for a software forge. If you already sync files somehow, like some dropbox equivelant, put bare repos on there and push/pull from there. That said, forgejo is very easy to self-host and the identical UI to Codeberg.