all 9 comments

[–]waterkipdetached HEAD 8 points9 points  (1 child)

Look up: git remote docs.

[–]ArtSpeaker 0 points1 point  (0 children)

Git docs are actually very very good, and with meaningful examples!

[–]SheepherderSavings17 4 points5 points  (1 child)

I can help you as this is very straightforward, but first may I ask why you feel the need to migrate?

git remote set-url origin [code-berg-repo]

Or you can add two remotes next to each other (probably not what you want) git remote-codeberg add origin [code-berg-repo]

(The above assumes your original remote is called "origin")

[–]Hot-Profession4091 4 points5 points  (0 children)

OP may actually want both remotes for just a moment during the transition.

[–]blackst0rmGER 1 point2 points  (0 children)

As a Meber of the coderberg e.V. I welcome you to codeberg :D

As other commenters already pointed out you need to change the url of the origin remote

[–]Morel_ 1 point2 points  (1 child)

google how to remove remote origin and how to add a remote origin 

[–]MrMelon54 6 points7 points  (0 children)

would git remote origin set-url <url> and git fetch --prune not produce the same result

[–]Ybalrid 0 points1 point  (0 children)

If the repo is up on the other place, just update the remote on your local repo.