I have just completed my projeect on react and i wanted to host it on github , but once i created the repo without adding README file , in the command line while writing the [“git push -u origin main”] command , this error pops up [error: src refspec main does not match any
error: failed to push some refs ], I dont able to get the error , i have tried multiple times by creating new error , but still the problem persistes.
I am expecting that, the file is completely pushed to the repo , with all the code bases that i have build.
Prashant kumar Singh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.