Skip to content

Instantly share code, notes, and snippets.

@daisukenishino2
Last active August 30, 2018 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daisukenishino2/2b88205eb5c49feeb695a09aee0c62c6 to your computer and use it in GitHub Desktop.
Save daisukenishino2/2b88205eb5c49feeb695a09aee0c62c6 to your computer and use it in GitHub Desktop.
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
Copy link
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