I have a local branch named master and its upstream is set to origin/main
But whenever I push to remote repo using git push -u origin main
it shows error:
error: src refspec main does not match any error: failed to push some refs to
But it works fine when I use git push -u origin HEAD:main
So what's the Problem in here?