Blog
Home

Tagged “tip”

← All articles
Getting Claude Code's commits out of the container with a fetch-only remote

25 September 2026

Claude Code works in a history-free copy of my brownfield repo, because the real repo still has old credentials in its history. Getting its commits back used to mean a temporary remote and a manual push every time. Now the real repo has a permanent, fetch-only remote pointing at Claude's copy: I fetch, branch off master and cherry-pick, and nothing ever flows back into the container.

Running two Claude Code accounts side by side (personal + work)

17 September 2026

I run Claude Code for both personal and work projects and wanted full separation: different subscriptions, no session conflicts, and no AI tool anywhere near secrets in a brownfield repo. Here's how isolating each account in its own Docker container works, plus two gotchas that bit me: a stale /login session, and two Compose stacks silently sharing the same named volume.