git: failed to push some refs

I'm really digging git, but its error messages are less than helpful at times.

git push origin master
        error: failed to push some refs to origin


Most likely, there are changes in the remote repo that you need to pull first:
git pull origin master


Resolve any conflicts, then you can push to the remote git repo.

I'm not sure why "failed to push some refs" couldn't include "(do you need to pull?)"

Established 2005 · Databasically © 2016