Fix Git Clone Connection Timed Out on AWS CodeCommit - Fixing Python UnicodeDecodeError with latin-1 Codec-Git Detached HEAD: How to Safely Use Reset --hard

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