Dozens of repos, one person
46 repositories and two Linux boxes with nobody else on them: the diary, the decision table, the rebuild guide and the job that keeps both sets of clones in step.
I have 46 git repositories under my own account, cloned on both my Linux boxes. 30 of them have had commits in the last three weeks, 2,292 commits between them. Nobody else works on any of it, so there’s nobody to ask why something is the way it is.
Three files carry most of that, and they live in two repos of their own: a diary, a table of decisions and a guide.
The diary
Every change to either box gets a line in that day’s file. There are 20 files so far and 704 lines. Three of them, with the machine names swapped for desk and home:
- desk+home (sudo): apt update, upgrade, autoremove, autoclean: desk 71 upgraded,
home 6 (10 and 24 held back, phased); nothing removed. Then both restarted,
home first, desk last.
- desk: unmounted the file-manager SFTP mount of home (`gio mount -u`); its
gvfsd-sftp had used about 29% CPU for about 40 hours. Not checked: why the
mount spun.
- home: restart OK: no failed units, search on GPU at first boot (no CUDA retries).
Which box, what changed, the numbers, and what wasn’t looked at. 265 of the 704 lines say what wasn’t checked, tested or done. It’s plain Markdown in git, so finding out when something changed is rg and git log.
The decision table
The second file is a table: number, decision, reason, date, status. It has 157 rows. This is row 41:
| No | Decision | Reason | Status |
|---|---|---|---|
| 41 | git talks to GitHub over SSH on both machines. | The home box lost its GitHub HTTPS login in the 26.04 upgrade. | stands |
128 rows stand, 16 are deferred, 12 have been superseded and one is partly done. A superseded row stays where it is and names the row that replaced it, so the old thinking is still there with its date. 13 rows say “reason not recorded”. I left them saying that.
The guide
The third is a guide to building both boxes from nothing and restoring the data: ordered steps, each ending in a check, about 14,000 words. It’s written in the present tense only. What used to be true stays in the diary. Next to it sit a file of what can’t be rebuilt from the repos and where the only copy is, and one of what still works when a box is off or away.
I tested it by having a fresh coding agent read it cold, with only the two repos to go on, twice in one evening. The first verdict was that the box I work at couldn’t be rebuilt from it: a wrong path, no restore route that worked, and steps in the wrong order. After I fixed those, the second read said it could be rebuilt, but only with the home box alive on the same network, and only after working round one path bug.
That bug came from a rename the same evening. I’d moved the diary’s folder, which meant changing 38 path references in 21 live files, mostly systemd units and scripts, and re-pointing 11 command links on each box. Three scripts still built the old folder name in code. I’d left a symlink at the old path, so all three kept working and nothing showed. They now resolve their own folder with realpath.
A full restore onto a blank machine is still on the guide’s own list of things that haven’t been done.
Two sets of clones
Each box runs a niced job every 15 minutes that does two things.
From GitHub, at most once an hour, it runs git fetch --prune origin and then fast-forwards a clone, but only when the clone is on its default branch, has no uncommitted changes to tracked files and has no commits of its own. It never resets, stashes, switches branch or merges.
From the other box, on every run, one ssh call asks for a digest of every clone’s branch tips. Only the clones whose digest changed get fetched, into remote-tracking refs, and nothing is checked out. A commit made on the other box shows up in git branch -r here within minutes, pushed or not. Uncommitted edits don’t travel. Its status line as I write this:
9 diverged, 7 install needed, 3 with uncommitted edits
Finished work is simpler: push, then git pull --ff-only on the other box.
Tidying
Before a session of work ends, its merged worktrees and branches are removed, loose output goes into a named folder, and any new place gets a line in the guide’s file of where things are. I checked while writing this: across the 46 repos there isn’t one spare worktree.
Featured projects
-
Apple News API
Publish articles and live coverage to Apple News from PHP, with the whole Apple News Format built from objects.
-
GitHub Auditor
Health, access and activity reports for more GitHub and Bitbucket repositories than you can keep in your head.
-
PrintMD
Markdown in, and a designed PDF, Word or PowerPoint file out. Its PDF service runs on your own computer.
-
Where Should I Live
Which city would leave you best off? Cities ranked by take-home pay, living costs, visas and the way you live.
-
Solar Calendar
Thirteen months of exactly four weeks, with the year starting on the first Monday on or after the spring equinox.
Latest writing
-
Many sessions at once, and what still needs me
Fifteen coding-agent sessions across two Linux boxes, one session that watches the rest, what it may answer for me, what it never may, and why a yes it passes on gets checked against what I typed.
-
61 public repos of agent tooling, none installed, six ideas kept
One author, 61 public repositories of coding-agent tooling: what I checked before any of it got near my Linux boxes, why none of it was installed, and the six ideas I built my own way.
-
Old phones as home cameras
Three old Android phones record to a Raspberry Pi, a filter drops the minutes where nothing moved, and a small vision model on my own graphics card decides whether an alert is a person.
-
What my Linux boxes check every hour
What the hourly health check on my two Linux boxes looks at, the numbers it warns on, and the time it failed every hour over a socket that was fine.