Skip to content

Instantly share code, notes, and snippets.

@JustLinuxUser
Created September 10, 2024 21:01
Show Gist options
  • Save JustLinuxUser/ec18a561c3415b4a0f74761bfcb49a91 to your computer and use it in GitHub Desktop.
Save JustLinuxUser/ec18a561c3415b4a0f74761bfcb49a91 to your computer and use it in GitHub Desktop.
What to do when you have a Cargo.lock merge conflict?
1. `git checkout origin/main -- Cargo.lock` to get the original Cargo.lock
2. `cargo build` to update Cargo.lock
3. `git add Cargo.lock`
4. continue the merge as normal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment