如何备份我的所有github存储库

时间:2013-04-30 19:05:40

标签: linux git github

如何备份我的所有github存储库。我试图找到一些简单的脚本或方法来做到这一点

1 个答案:

答案 0 :(得分:2)

试试这个:

$ cd <place for backups>
$ for repo in <github-repo-1>, <github-repo-2>, ...; do
    git clone --mirror $repo
  done