Dealing with non-fast-forward errors - GitHub Docs

Sometimes, Git can't make your change to a remote repository without losing commits. When this happens, your push is refused.