versioned_docs_archived/version-4.x/git.md
You should always commit the lockfile (pnpm-lock.yaml). This is for a
multitude of reasons, the primary of which being:
pnpm can automatically resolve merge conflicts in pnpm-lock.yaml.
If you have conflicts, just run pnpm install and commit the changes.
Be warned, however. It is advised that you review the changes prior to staging a commit, because we cannot guarantee that pnpm will choose the correct head - it instead builds with the most updated of lockfiles, which is ideal in most cases.