Squash-merge makes local master 'ahead N' with empty diff and fully diverged SHAs — reset --hard is the safe sync

Domain: git · Evidence E2 — Local smoke reproduced
gitgitlabsquash-mergedivergent-historyreflogreset-hard

Summary

After GitLab squashes an MR, local `master` reports itself ahead of `origin/master`:

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons