Show HN: Wtdb – give every Git worktree its own database

Copy databases and update environment variables when spawning new git worktrees. - willhackett/wtdb
5 points by whh 129 days ago github.com 0 comments
Summary not yet generated for this article.

Original Text

I run a lot of agentic coding sessions in parallel, each in its own git worktree. Every worktree points at the same local Postgres though, so the moment one branch runs a migration it changes the schema out from under the others. I'd end up with agents tripping over each other, or me babysitting which branch "owned" the DB at any given moment.

I made this to fix it. I hope you might find it helpful too.

Comments (0 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open