What to do to move from Github to Codeberg?

I am about to move my repositories from Github to Codeberg - in fact I have done that already, but am not functional with it yet.

Is there a guide on what to do in PlatformIO to now start using the Codeberg repos?

You mean what to do if you have a Git project that is currenty pointing at some Github repository and you want to instead push it to a different Git repository hosted e.g. at Codeberg?

Then https://www.atlassian.com/git/tutorials/git-move-repository or more directly https://docs.codeberg.org/advanced/migrating-repos/ applies.

Not quite. I have migrated my repositories to Codeberg already and did delete the former Github clone repos on my PC. I cloned the Codeberg repos instead and am able to modify stuff locally.

But when trying to Sync&Push f.i., I need to input my credentials each time I do this. I seem to remember there was a way to store the credentials somewhere in PlatformIO or git, but cannot remember how that was done.

PlatformIO does not handle the Git stuff at all. VSCode has an interface for Git, but the real settings etc. are saved in the .git folder of the project.

In the terminal, when you do

git remote -v

What URL does it show you? A HTTP(S) or a SSH URL? Maybe you have a private key on your computer and thus you want to use SSH, but you have mistakenly cloned the repo using the HTTP URL instead of the SSH URL. (With SSH, it never ask for a password. Your SSH key is the authentication.) Or, you do want to use the HTTP URL but you have the credentials saved in some credentials helper. Then you have to make sure the credentials helper is activated.

1 Like

Thank you for the pointer to the credentials helper. There I found what I was looking for:

git remote set-url origin https://<USERNAME>:<PASSWORD>@bitbucket.org/path/to/repo.git

was the option I was missing.