Not able to push to Github

Hi,

I am trying to push my Level 2 certification project to Github repository, but keep facing the error:
error: src refspec main does not match any
error: failed to push some refs to

I have spent more time on trying to push to Github than working on the actual project. I am new to Github, so tried going through the link Adding locally hosted code to GitHub - GitHub Docs but to no success.

Maybe checking this article would help in resolving it?