最短かつスマートな方法を考えた結果こうなった。
## あらかじめ GitHub で hoge リポジトリを新規作成しておく $ git clone {複製元リポジトリのURL}.git hoge $ cd hoge $ git remote set-url origin https://github.com/{user_name}/hoge.git $ git push origin master
おまけ
最初は以下のようにやっていたが、職場の方に clone
してくるときに root ディレクトリの名前を指定できるということを教えていただいた。
## あらかじめ GitHub で hoge リポジトリを新規作成しておく $ mkdir hoge $ cd hoge $ git clone {複製元リポジトリのURL}.git . $ git remote set-url origin https://github.com/{user_name}/hoge.git $ git push origin master