Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GitHub の Repositories の Backupを作成するBATファイル
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
@daisukenishino2

This comment has been minimized.

Copy link
Owner Author

daisukenishino2 commented Aug 3, 2018

復元

GitHub上に、新しいリポジトリ(例えば、OpenTouryo2)を作成して、
「Clone with HTTPS」のURLを取得して、以下のように復元する。

>git push --mirror https://github.com/OpenTouryoProject/OpenTouryo2.git

参考

Qiita

help.github.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.