not possible to fast-forward 🌿 Git

fatal: Not possible to fast-forward, aborting.

pull is configured to fast-forward only, but your branch and the remote have diverged.

Seen on: Git

Meaning

With pull.ff=only, git refuses to create a merge commit or rebase automatically. You must choose how to reconcile.

Common causes

  • Local commits plus new remote commits
  • pull.ff=only configured

⚡ Quick fix

  1. Rebase: git pull --rebase
  2. Or merge explicitly: git pull --no-ff

Detailed fix by platform

Git

  1. git pull --rebase origin main

How to diagnose

  1. Divergence — git log --oneline --graph --all
  2. Recent change — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.