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.

up vote 0 down vote accepted

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

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 ;)

  • 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 Dec 8 '12 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 Sep 21 '14 at 16:12

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.

  • Worth noting that this service is currently in Private Beta. – codingbadger Dec 11 '13 at 16:20
  • 1
    If you want to try it, you can access during private beta using this invitation link – dnlhtz Dec 11 '13 at 16:35

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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