Renaming an Remote Repository in Git
To rename an remote repository, we use the remote rename command, followed by the original and new names separated by a space. For example, let's rename an remote repository from old to new:
git remote rename old new
Now let's use the remote command to check if the new remote repository name has taken effect:
git remote
Rename your remote repository.