rename origin repo git code example
Example 1: how to rename origin in git
git remote rename beanstalk origin
Example 2: rename git repository command line
mv oldName.git newName.git
git remote rename beanstalk origin
mv oldName.git newName.git