You can automate this using my open-source tool GitRebrand — it updates your old GitHub username across all repositories and files automatically through the GitHub API.
🔗 https://github.com/safwanganz/GitRebrand