I started to get \'failed to push some refs\' error when I changed some files and tried to do push. Most instructions tell to do git pull first. I have done it and git says ever
Be sure your branch is unprotected, or developer can push is checked.