GitHubリポジトリの複製
方法1:bareクローン,mirrorプッシュ
code:sh
git clone --bare https://example.com/origin.git
cd origin.git
git push --mirror https://example.com/new-remote.git
方法2:mirrorクローン,mirrorプッシュ
code:sh
git clone --mirror https://example.com/origin.git
cd origin.git
git push --mirror https://example.com/new-remote.git
参考
Cf. https://docs.github.com/ja/repositories/creating-and-managing-repositories/duplicating-a-repository
ーーー
2025/8/5 10:48
original:/tomiokario-close/GitHubリポジトリの複製