rename git repository code example
Example 1: rename github repository command line
$ git remote set-url origin new_url
Example 2: rename git repository command line
mv oldName.git newName.git
$ git remote set-url origin new_url
mv oldName.git newName.git