logoalt Hacker News

treeblahtoday at 10:52 AM1 replyview on HN

Claims about “what comes after git” aside, I really like the idea of virtual branches. Worktrees have a pitfall IMO that they don’t allow you to test changes in a running local env, meaning I need to commit the changes, close the worktree, and checkout the branch on my primary workspace to verify.

Gitbutler virtual branches OTOH appear to provide branch independence for agents/commits, while simultaneously allowing me to locally verify all branches together in a single local env. This seems quite a bit nicer than checking out worktree branches in the primary workspace for verification, or trying to re-run local setup in each worktree.


Replies

mblodetoday at 10:59 AM

I created a cli called spotlight-testing to solve this pitfall with worktrees. I hope it helps! https://github.com/mblode/spotlight-testing