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 -vto verify your remotes. Update as necessary (git remote set-url [remote] [url]). If it's a new project you can justgit initand add your remote. - first push you'll need to specify the remote such as
git push originand after that you'll be fine to use justgit push