How to Recover Stashed Changes in Git Detached HEAD - How to Resolve Git SSL Certificate 'Unable to Get Local Issuer'-Fix npm Permission Denied by Changing Global Directory

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.