GitHub
GitHub push rejected with non-fast-forward
The remote branch contains history that the proposed push would not preserve. Git rejects the update to protect commits, commonly after someone else pushed while your local branch was behind.
GitHub
The remote branch contains history that the proposed push would not preserve. Git rejects the update to protect commits, commonly after someone else pushed while your local branch was behind.
Observed message
non-fast-forward
Why it happens
How to fix it
Official reference
GitHub official documentationRelated errors
Explore more