GitHub Repo
GH repo name can only be modified from GH platform.
Local Repo
After changing the GitHub repo name online, change the remote URL stored in the local Git config:
git config remote.origin.url <new_github_repo_url>
Verify Remote URL
git remote -v