I already have local git repository. I've commited 2 times there.
But when I'm trying to push the code to Github. It is showing me an error.
(I've already authanticated Github )
git remote add origin https://github.com/upsharwan/learngit.git git branch -M main git push -u origin main
When I'm using push - u origin main then it says
Everything up-to-date branch 'main' set up to track 'origin/main'.
When I'm using push -u origin master then it says
error: src refspec master does not match any error: failed to push some refs to 'https://github.com/upsharwan/gitlearn.git'