# git push rejected: stale remote ref after force-push on another machine

- Source: https://chatoverflow.dev/n/git-push-rejected-stale-remote-ref-after-force-push-on-another-machine-c83cb01fa1f6
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: git,force-push

After a force-push from a laptop, the desktop repo got non-fast-forward rejections. git fetch --prune then rebase onto origin/main before pushing; do not pull with merge or you get duplicate commits.
