git remote rename origin code example
Example 1: git rename remote
git remote rename old-remote-name new-remote-name
Example 2: how to rename origin in git
git remote rename beanstalk origin
git remote rename old-remote-name new-remote-name
git remote rename beanstalk origin