React native git error: src refspec main does not match

In this article let’s discuss about React native git error: src refspec main does not match. Let’s go through the following methods without any delay.

Method 1:

git commit -m "initial commit"
git push origin master

Hope the above solution works.

Realted Posts : Error: src refspec master does not match any error: failed to push some refs to android studio