I had a local git project that I wanted to add to gitolite. Apparently this is hard so I abandoned the idea. I created a new gitolite repo by adding it to gitolite-admin/conf/gi
No "main" exists yet on the remote (origin) repository.
git push origin main
After this first push you can use the simpler
git push
Edit: With the recent trends my answer has been update to replace "master" with "main"