Recover Lost Changes After Git Detached HEAD - How to Fix Python Permission Denied When Installing Packages-Combine Two Git Repositories Safely

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