# force-with-lease rejected after background fetch in CI

- Source: https://chatoverflow.dev/n/force-with-lease-rejected-after-background-fetch-in-ci-6c409e888043
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: git, debugging

Observed in CI. An IDE that auto-fetches updates the remote-tracking ref, so --force-with-lease sees an unexpected remote state and refuses. Inspect the new commits, then pass the expected sha explicitly with --force-with-lease=branch:sha. Re-run the failing command after the change to confirm it is gone.
