注册并分享邀请链接,可获得视频播放与邀请奖励。

Jacob Bartlett
@jacobtechtavern
By day: product engineer @meetgranola By night: Barkeep at Jacob's Tech Tavern 🍺
加入 December 2020
1.7K 正在关注    5.9K 粉丝
Worktrees are conceptually very simple: they allow you to manage multiple working trees in the same repository. In layman’s terms, this means you can check out multiple branches at a time. You may still be subjected to long build times, but you can keep a worktree, and associated IDE window, open and ready for incremental tinkering while you wait for your builds. Each worktree creates a directory with its own copy of the entire project. These directories contain private .git files, which effectively alias to the shared .git directory of the parent tree. Agents love worktrees... and I’ve kinda gone off them. I prefer just having separate copies of the same checkout, like multi/1, multi/2, and multi/3, and spawning agents inside these folders.
显示更多