Git push failed, "Non-fast forward updates were rejected"

git, github, push

Solution

Pull changes first:

git pull origin branch_name

Problem

I've edited my GIT repositories via Git Online. After I tried to push my local code changes, I got an error: ``` Git push failed, To prevent from losing history, non-fast forward updates were rejected. ``` How can I fix this?

Original source

Related problems