rename github repository command line

C++
$ git remote set-url origin new_url
Source

Also in C++: