LoginSignup
10
7

More than 5 years have passed since last update.

Gitリポジトリの内容をmirrorして移行する

Last updated at Posted at 2014-07-09

既存のgitリポジトリから、他のgitリポジトリへ内容を丸々コピーする方法
例としては社内gitからgithubへの移行などが考えられる。

gitのmirrorオプションを利用する

$ git clone --mirror <SOURCE_REPOSITORY_URL>
$ cd <REPOSITORY>
$ git push --mirror <DESTINATION_REPOSITORY_URL>
10
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
7