既存のgitリポジトリから、他のgitリポジトリへ内容を丸々コピーする方法
例としては社内gitからgithubへの移行などが考えられる。
gitのmirrorオプションを利用する
$ git clone --mirror <SOURCE_REPOSITORY_URL>
$ cd <REPOSITORY>
$ git push --mirror <DESTINATION_REPOSITORY_URL>
More than 5 years have passed since last update.
既存のgitリポジトリから、他のgitリポジトリへ内容を丸々コピーする方法
例としては社内gitからgithubへの移行などが考えられる。
gitのmirrorオプションを利用する
$ git clone --mirror <SOURCE_REPOSITORY_URL>
$ cd <REPOSITORY>
$ git push --mirror <DESTINATION_REPOSITORY_URL>
Register as a new user and use Qiita more conveniently