我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

Backing up a repository

You can use the API or a third-party tool to back up your repository.

此文档对您有帮助吗?

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或, 了解如何参与。

To download an archive of your repository, you can use the API for user or organization migrations. For more information, see "Migrations."

Once you have downloaded your archive, you can copy it to an external hard drive and/or upload it to a cloud-based backup service such as Google Drive or Dropbox.

Third-party backup tools

A number of self-service tools exist that automate backups of repositories. Unlike archival projects, which archive all public repositories on GitHub that have not opted out and make the data accessible to anyone, backup tools will download data from specific repositories and organize it within a new branch or directory. For more information about archival projects, see "About archiving content and data on GitHub."

You can back up all of a repository's Git data (such as project files and commit history), as well as much data from GitHub (such as issues and pull requests), with BackHub, which creates daily recurring backups of your repositories with snapshots up to 30 days back in time. BackHub is available in GitHub Marketplace.

此文档对您有帮助吗?

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或, 了解如何参与。