Skip to content

fetch-pull-before-commit-push

Never commit or push on a stale branch: git fetch origin first. Behind before commit: git pull --ff-only. Behind or diverged before push: git pull --rebase, re-verify, push; never --force. Never git stash/--autostash: commit your own paths or stop and report. Conflicts: stop.

Full: docs/fetch-pull-before-commit-push.md.