To rename remote, use command git remote rename
The git remote rename command takes two arguments:
An existing remote name, for example : origin
A new name for the remote, for example : destination
Get existing remote name
git remote
# origin
Check existing remote with URL
git remote -...