15

GitHub does not allow users to archive repositories and the available plans have fixed limits for the amount of repositories one may have.

If I need to host more repositories than I'm allowed to and Some of those repositories are inactive, I would like to archive those repositories while keeping all the important information (issues, wiki, commits, ...). Then if I need to use one of those projects again, it would be good to have a way to activate that repository again.

Does anyone knows of a method or third party solution that allows me to achieve something similar to the above?

I work on different small projects that I would like to host on GitHub as private repositories. Those projects became inactive quickly but sometime I need to go back to one of them and fix a bug or do so changes.

1

3 Answers 3

3

Nowadays, GitHub supports archiving repositories.

Archiving repositories

You can archive a repository to make it read-only for all users and indicate that it's no longer actively maintained. You can also unarchive repositories that have been archived.
...

  1. On GitHub, navigate to the main page of the repository.
  2. Under your repository name, click ⚙ Settings.

    enter image description here

  3. Under "Danger Zone", click Archive this repository or Unarchive this repository.

    enter image description here

  4. Read the warnings.
  5. Type the name of the repository you want to archive or unarchive.

    enter image description here

  6. Click I understand the consequences, archive this repository.

Read more at GitHub help on Archiving a GitHub repository

7

While there is some workarounds available, like:

IMHO using bitbucket is a better alternative, i.e. free, unlimited private repositories and it also got a git support this year ;)

2
  • 1
    Bitbucket is the way to go for lots of private repos, they only want you to pay when you need more collaborators on a project.
    – Ashfame
    Commented Dec 8, 2012 at 13:05
  • Just a side note. Your comment is unfortunately outdated. Today (2014) Bitbucket is far, far before GitHub and using it for any kind of professional project management is a mistake. It has a lot of bugs and misses a lot of fundamental features, that GitHub has since initial build.
    – trejder
    Commented Sep 21, 2014 at 16:12
1

We had the same issue: many small inactive private repositories. There are some open source backup scripts/tools (like this one) but most of them are only for public repositories or can't restore properly. That is why we developed our own tool to archive our repositories and recently decided to offer it as a service backhub.co

You can simply login with your GitHub account and back up all repositories including issues, comments, milestones and wiki. It can also restore repositories back to GitHub incl. all the meta data. Restoring has some limitations though (due to GitHub API), all issues are submitted by you, not by the original user but we include the original information in the issue description. We also filter @mentions – otherwise collaborators might get a lot of mail notifications when restoring.

3
  • Worth noting that this service is currently in Private Beta. Commented Dec 11, 2013 at 16:20
  • 1
    If you want to try it, you can access during private beta using this invitation link
    – dnlhtz
    Commented Dec 11, 2013 at 16:35
  • +1 for github-backup. Its Github repository has unfortunately been removed, but here is the current version on haskell.org
    – GDP2
    Commented Jul 16, 2019 at 1:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.