Fix Git Authentication Failed in VS Code on Mac - How to Recover Stashed Changes in Git Detached HEAD-Nginx Too Many Redirects: Troubleshooting Guide

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.