fetch-pull-before-commit-push
Fetch & Pull Before Commit and Push
Section titled “Fetch & Pull Before Commit and 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.