this post was submitted on 07 Jan 2026
15 points (100.0% liked)

Git

4098 readers
2 users here now

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Resources

Rules

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

founded 2 years ago
MODERATORS
 

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
[–] starshipwinepineapple@programming.dev 2 points 1 week ago* (last edited 1 week ago)

Sounds like you got it sorted but heres what i do:

  • setup new repo in codeberg but don't check the box to initialize the repo
  • for existing project, use git remote -v to verify your remotes. Update as necessary (git remote set-url [remote] [url]). If it's a new project you can just git init and add your remote.
  • first push you'll need to specify the remote such as git push origin and after that you'll be fine to use just git push