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

标签 linux git github

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

最佳答案

试试这个:

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

关于linux - 如何备份我的所有 github 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16307184/

相关文章:

linux - cd 命令在 bash 脚本中不起作用

私有(private)存储库的 GitHub 页面

linux - 我在我的虚拟机CentOS7上安装并配置了Graylog 3.0,在centos7上IE可以访问但是在本地无法访问

linux - 我如何知道 Linux 上进程的调度策略?

android - 推送后在 Github 上保护 API key

git - 如何通过 SHA1 哈希重写 Git 提交?

git - 如何将主分支的当前状态复制到另一个分支?

git - 重命名 GitHub 组织会影响该组织项目的分支吗?

tags - 如何使用github标签为项目创建下载?

c - 在 C 中以编程方式读取文件描述符表