Error: src refspec main does not match any

Hi.
I’m trying to upload an existing project / folder to my gitea repository.
But I’m getting the error: error: src refspec main does not match any

These are the commands I’m running:

git init
git config --global init.defaultBranch main
git remote add origin ssh://git@gitea.domain.tld:222/ORG/python.git
git add cisco_wlc_mpsk_updater/  ## Adding the whole directory
git commit -m "First upload of existing project"
git push -u origin main

Gives me the error:

error: src refspec main does not match any
error: failed to push some refs to ‘ssh://gitea.domain.tld:222/ORG/python.git’

What am I doing wrong?

Thanks