After cloning from remote git repository (at bettercodes) I made some changes, commited and tried to push:
git push origin master
Errors
Running command git update-ref -d refs/heads/origin/branch fixed it.
git update-ref -d refs/heads/origin/branch