I have over 200 projects on my workstation, every one is a git repository. Most of them are superseded or otherwise abandoned. I still keep the code in case I ever need anything from them.
Currently, the active projects are non-bare git repositories in
~/Projects, the inactive projects are
.tar.gz archives that simply contain the whole non-bare git repository within the same folder. So I got the following:
The advantage of this is that backups are really fast, inactive projects are just a single file which has to be checked/copied. Whenever I want to look into the projects, I have to extract the folder, look into it and compress it some time later when I think the project is inactive again.
Is there a better way to this?