I frequently find that I have old projects that I don't necessarily want ot delete, but I want to get out of the way. This is my setup to make that [easy][xkcd-automation].
My setup has two parts: A repo (ex. ariporad/archive
), and a script (this one):
- The repo This repo is a collection of orphan branches, one per project. Since some of these projects are private (and I'm lazy), the entire repo is private.
- The script This script takes the name of a file/folder ($folder) as an argument. It then: