When we are pushing our source code to git, we may get this error: error: failed to push some refs to. In this tutorial, we will introduce you how to fix it.
Look at example below:
How to fix this error?
It is very easy, our git command is wrong.
Wrong command:
git push -u origin mater
Correct command:
git push -u origin master
It is master, not mater.
Run correct command, we will find this error is fixed.