How to Manually Remove a Stuck Git index.lock File - Clear pnpm Cache: Fix Errors and Free Space-Understanding and Fixing Git Unrelated Histories

Prepare
Execute
Validate
Document
Operational follow-up
- Record the exact option, command, or setting that changed the result.
- Keep a rollback note if the workflow affects shared files or team settings.