rea-ci-tests-audit
MOmorluto/rea486k近 7 天新增 8,943 个 star
Resolve merge conflicts non-interactively: start the integration, read both sides' intent from their commits, preserve both intents, validate on the resolved tree. Never force-pushes shared branches.
A conflict is two intents meeting in one file. Resolution that flattens either intent is a bug with a clean git status.
git fetch origin <base>) and merge the fetched SHA — git merge FETCH_HEAD (or the project's rebase convention, when the caller has not
constrained it) — so the conflicts you inspect match what GitHub
reported; a local base ref can be absent or behind origin/<base>, and
git merge never refreshes it implicitly. A mergeable: conflicting
answer from the remote, or a clean local branch, has no MERGE_HEAD —
git log --merge before integrating exits 128.git log --merge -p -- <file> for each conflicted
file once the merge is in progress — what did each side change and why
(commit messages are evidence). Conflict markers show the what; the
commits show the why. On the rebase path there is no MERGE_HEAD —
git log --merge reads nothing there; read the topic side with
git show REBASE_HEAD -- <file> (the dotted range REBASE_HEAD..HEAD
excludes the topic commit itself, so it shows only the base side) and
the base side with git log -p HEAD -- <file> until the rebase
continues. When the caller forbids starting an integration at all (e.g.
read-only inspection), compare explicit ranges instead:
git log -p <base>...HEAD -- <file>.git merge --abort; after a rebase starts, run
git rebase --abort. If abort is unsafe or unavailable, stop and hand off
the repository with the active MERGE_HEAD/REBASE_HEAD and conflict list
explicitly reported.git rebase --continue repeatedly until git status shows no active
rebase. Validate that final tree before pushing. Then commit the resolution with a message naming what each side
wanted. No force-push to shared branches, ever; a rebased own-branch
uses --force-with-lease — unless a caller (e.g. babysit) forbids
rebase and force-push entirely, in which case merge-commit resolution is
the only path.why) will need it.MOmorluto/rea486k近 7 天新增 8,943 个 star
MOmorluto/rea486k近 7 天新增 8,943 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star