Fix Git 'index.lock file exists' Error - Fix Remote Desktop Error 0x80004005: Credential and Network Checks-How to Exit Git Detached HEAD State

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