[Solved] error: src refspec main does not match any
If you get the following error:
This is because you probably haven’t committed any files to git yet!
Fix for: src refspec main does not match any
Make sure to add your files, if they have not been added yet:
|
|
Commit your files:
|
|
Push your changes to the git repo, remember to swap out the branch name as appropriate:
|
|
Need a deeper dive?
For more in depth information, you can visit Solved Error src Refspec Main Does Not Match