Merge Conflict Resolution Checklist
A calm, repeatable process for resolving Git merge and rebase conflicts in Rust repos - especially Cargo.toml, Cargo.lock, and sqlx migrations.
Search across all documentation pages
A calm, repeatable process for resolving Git merge and rebase conflicts in Rust repos - especially Cargo.toml, Cargo.lock, and sqlx migrations.
git status shows merge, rebase, or cherry-pick.git diff --name-only --diff-filter=U.git merge --abort or git rebase --abort.git stash push -m "pre-conflict".git fetch origin.<<<<<<<, =======, >>>>>>> mark yours vs incoming.git log --oneline --left-right HEAD...MERGE_HEAD.Cargo.toml side, remove markers, run cargo generate-lockfile or cargo update -p crate.sqlx revision ids; may need merge migration after resolution.main unless ticket requires bump.cargo fmt -- file.rs.git add <file>; git diff --check catches marker leftovers.git rebase --continue or complete merge commit.cargo build --locked.cargo fmt --all -- --check.cargo clippy --all-targets -- -D warnings.cargo test --all-features.sqlx migrate run when migration files conflicted.git diff origin/main...HEAD.git push --force-with-lease on your feature branch only.No. Resolve Cargo.toml first, then regenerate lock from merged manifest.
Should not be tracked; add to .gitignore and remove from index.
Stack versions: This page was written for Rust 1.97.0 (edition 2024), Tokio 1.x, Axum 0.8, serde 1.0, sqlx 0.8, clap 4, and Polars 0.46+.
Reviewed by Chris St. John·Last updated Jul 16, 2026