How to Fix a Detached HEAD with Git Reset --hard - Git Push Rejected Not Fast Forward Guide-Windows Search Indexing Troubleshooting Checklist

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