My original problem is that I have a directory where I write various scripts. Each of them is independent of others, and usually one-file-long. I want to have some versioning applied to them, but I have the following problems/requirements:
- I don't want to have to store each small script in a separate directory!
- I don't want to store them all in one repository OTOH, as they are completely unrelated, and:
- some of them may later grow to more files (and then they will need a separate dir),
- I sometimes want to copy one of them to a different machine (and I want to clone the whole repo).
- I want to benefit from (distributed) version control mechanisms -- at least:
- "infinite" number of revisions,
- ability to clone repositories on different computers,
- ability to do "atomic" multi-file commits.
Is it possible?
I'd prefer to do it in some mainstream distributed VCS (a solution using Mercurial would be preferable, but I'm not fixed).
EDIT: the solution has to be free (at least "as in beer") and cross-platform (at least Win32 & Linux).
Related, but didn't help:
- "two-git-repositories-in-one-directory" -- didn't find it helpful: the accepted answer looks like point 2. (above) to me; the current "community voted" answer sounds like 1.
- "Version control of single files using Subversion" -- also too much of 2. or 1.