Last active
August 30, 2018 00:22
-
-
Save daisukenishino2/2b88205eb5c49feeb695a09aee0c62c6 to your computer and use it in GitHub Desktop.
GitHub の Repositories の Backupを作成するBATファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone --mirror https://github.com/OpenTouryoProject/OpenTouryo.git | |
cd OpenTouryo.git | |
git fetch --all | |
cd ..\ | |
git clone --mirror https://github.com/OpenTouryoProject/OpenTouryoTemplates.git | |
cd OpenTouryoTemplates.git | |
git fetch --all | |
cd ..\ | |
git clone --mirror https://github.com/OpenTouryoProject/OpenTouryoDocuments.git | |
cd OpenTouryoDocuments.git | |
git fetch --all | |
cd ..\ | |
git clone --mirror https://github.com/OpenTouryoProject/MultiPurposeAuthSite.git | |
cd MultiPurposeAuthSite.git | |
git fetch --all | |
cd ..\ | |
git clone --mirror https://github.com/OpenTouryoProject/AsynchronousProcessingService.git | |
cd AsynchronousProcessingService.git | |
git fetch --all | |
cd ..\ | |
git clone --mirror https://github.com/OpenTouryoProject/FrontendTemplates.git | |
cd FrontendTemplates.git | |
git fetch --all | |
cd ..\ | |
git clone --mirror https://github.com/OpenTouryoProject/SampleProgram.git | |
cd SampleProgram.git | |
git fetch --all | |
cd ..\ | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
復元
GitHub上に、新しいリポジトリ(例えば、OpenTouryo2)を作成して、
「Clone with HTTPS」のURLを取得して、以下のように復元する。
>git push --mirror https://github.com/OpenTouryoProject/OpenTouryo2.git
参考
http://shim0mura.hatenadiary.jp/entry/20120914/1347591103
http://tanacasino.hatenablog.com/entry/2013/08/03/233427
Qiita
https://qiita.com/0xmks/items/208da3e4cb9aab71117b
https://qiita.com/koshihikari/items/dcf126fa9c0de2b6fa7e
help.github.com
https://help.github.com/articles/duplicating-a-repository/
https://help.github.com/articles/adding-a-remote/
https://help.github.com/articles/changing-a-remote-s-url/