I have a repo that I want to push to codeberg. First, I tried to push to create and got the message

$ git push --mirror
Forgejo: Push to create is not enabled for organizations.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

So I created a new repo, but wasn't allowed to push until I had pulled - which just deleted all my local files 🙄

So - what do I do?

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 6 points 10 months ago*

Ok, I figured it out - I needed to

$ git remote set-url origin ssh://git@codeberg.org/OrgName/repoName.git

-and then I could push.

  • source