如何创建GitHub存储库的完整脱机归档? [英] How can I create a complete offline archive of a GitHub repository?

查看:145
本文介绍了如何创建GitHub存储库的完整脱机归档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一些回购协议,不再需要保留在GitHub上.如果我们使用GitHub的归档功能,则回购实际上会保持在线状态.相反,我们想要的是一种下载给定存储库的所有内容的归档文件(包括问题报告),将该存储库归档文件放入长期保存系统并删除存储库的方法.来自GitHub.从堆栈溢出方面的其他类似问题的意义上讲,这不仅仅是简单地备份存储库,就像 BackHub 一样.是否有工具或一套程序(git clone以外)可以让我做到这一点?

We have some repos that we no longer need to keep on GitHub. If we use GitHub's archiving feature, the repos actually stay online. What we'd like instead is a way to download an archive of all the content (including issue reports) for a given repository, put that repository archive in a long-term preservation system, and delete the repo from GitHub. This is more than simply backing up a repository in the sense of other similar questions on Stack Overflow, and is more like what BackHub can do. Is there a tool or set of procedures (beyond git clone) that will allow me to do this?

推荐答案

python-github-backup 可以备份组织帐户中的单个存储库,也可以备份帐户中的所有存储库.我已经在单个存储库上进行了尝试,并按预期工作:使用其--all选项,它可以捕获问题,标签,里程碑,提取请求和Wiki页面以及回购本身.

python-github-backup can back up a single repository in an organizational account, as well as all repositories in an account. I have tried it on individual repositories, and it worked as hoped: using its --all option, it captures issues, labels, milestones, pull requests, and wiki pages, as well as the repo itself.

使用谷歌搜索"github-backup"会导致其他类似的工具,但是大多数其他工具的功能似乎少于

Googling "github-backup" leads to other similar tools, but most of the others seem to have fewer features than python-github-backup or haven't been updated for many years. However, I must admit I haven't explored the other options very carefully.

提示:使用Google查找合适工具的基本要素似乎是专门搜索"github"和"backup"一词,而不是像我在原始搜索中所做的那样包括存档",甚至使用更详尽的搜索字符串,例如如何制作备份github存储库".

Tip: the essential ingredient in using Google to find a suitable tool seems to be to search for the words "github" and "backup" specifically, and not include "archive" as I was doing in my original search, or even use more elaborate search strings such as "how make backup github repository".

这篇关于如何创建GitHub存储库的完整脱机归档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆