You could make a private repo and set up an SSH key to access it. For example, I have my dotfiles hosted on Codeberg but it’s a private repo so only I have access to it (although I would not recommend putting unencrypted passwords, even in a private repository)
Although I understand if you mean not publishing to GitHub as I guess there has been some controversy and it’s owned by Microsoft.
You could make a private repo and set up an SSH key to access it. For example, I have my dotfiles hosted on Codeberg but it’s a private repo so only I have access to it (although I would not recommend putting unencrypted passwords, even in a private repository)
Although I understand if you mean not publishing to GitHub as I guess there has been some controversy and it’s owned by Microsoft.