Git · Junior · Question 16 of 75
git push is rejected with "non-fast-forward". What does it mean?
- 1The remote branch is protected and can't be pushed to
- ✓Correct answer: The remote has commits you don't have; integrate them first
- 3Your commit message is too long for the server
Explanation
Someone pushed new commits, and your branch doesn't include them. Pull (merge or rebase), resolve any conflicts, then push. Forcing would overwrite their work.