Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nitinbhojwani/e552956b5045fc0d18880c34288f3541 to your computer and use it in GitHub Desktop.
Save nitinbhojwani/e552956b5045fc0d18880c34288f3541 to your computer and use it in GitHub Desktop.
Resolve git merge conflicts with poetry.lock
# Pick the change from the branch just merged
git checkout --theirs poetry.lock
# Update poetry.lock from pyproject.toml without any update
poetry lock --no-update
# Yey! the conflict is resolved and poetry.lock is updated with correct hash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment