跳到正文
日常 Git 操作工作树

多个分支 同时检出

工作树是为同一仓库另开一个文件夹来检出其他分支。它是多个智能体并行工作而不互相干扰的基础,gitā 将它们视作仓库的有机组成部分。

立即体验

AgentWorking1 agent · 2 subagents
Branchfeature/checkout-v2↑2 not pushed
Pull request#214 Checkout v2: shipping and payment as separate steps#214 open · mira
Checks CIe3b7a10 · 2/3
Preview deployment Ready28 min ago · 2 commentsstorefront-git-feature-checkout-v2.northpier.dev
HistoryAuthorDateSHAStatus
Apply the saved address when the cart reloadsMira Okafor4m agoa91f3c2Not pushed +2
Split the payment step into its own routeMira Okafor9m ago5d20e7bNot pushed
Validate the shipping form on the serverMira Okafor32m agoe3b7a10 #214 Review requestedChecks running Preview ready
Round cart totals per line, not per orderTomás Vega47m ago0b6e2f4 Preview building
Checkout v2 skeleton behind a flagMira Okafor1h ago77c4d9e
Merge pull request #212 from feature/search-filtersJonas Lindqvist2h agoc8d41aaChecks passed Live
Persist filters in the URLPriya Nair3h ago4f1a6b3Checks passed Preview ready
Facet counts from the search indexPriya Nair4h ago9e0c5d7
Filter chips for size and colourPriya Nair5h ago2a7f9c1
Cache CDN images for a dayTomás Vega6h agob14e88dChecks passed Production ready
Merge pull request #209 from fix/webhook-retriesMira Okafor1d ago6c3d0f5Checks passed
Back off webhook retries exponentiallyJonas Lindqvist1d agod7e21b0
Record every webhook attemptJonas Lindqvist1d ago83af4c6
Release 2.4.0Tomás Vega2d agof02b7e9Checks passed Production ready
Lazy-load the product galleryPriya Nair2d ago1e9a3d4Checks passed
Merge pull request #205 from feature/gift-cardsJonas Lindqvist3d agoa5c70beChecks passed
Redeem gift cards at checkoutTomás Vega3d ago3d8b1f2
Gift card balance endpointTomás Vega3d ago70e4a9c
Gift card model and migrationsTomás Vega4d agoc2f5e61
Fix the flaky cart end-to-end testMira Okafor4d ago58b0d3aChecks passed
Upgrade to Next.js 16Jonas Lindqvist5d agoe91c7f8Checks failed
Tune the product page's largest paintPriya Nair5d ago0d4b6a2Checks passed
Merge pull request #198 from feature/wishlistMira Okafor6d ago7b3e9c5Checks passed
Wishlist pageJonas Lindqvist6d ago49a1d0e
Save for later buttonJonas Lindqvist1w agob6f82c3
Order status emailsTomás Vega1w ago2c7e5a9Checks passed
Cache category pagesPriya Nair1w ago9a41c0dChecks passed
Format prices per localeMira Okafor1w ago64d2b8eChecks passed
Cart drawerJonas Lindqvist2w ago31f7a6c
Initial storefrontMira Okafor2w agod08e5b4

Mira Okafor mira@northpier.example

4m ago · feature/checkout-v2

Apply the saved address when the cart reloads

The payment step read the address from the form state, so a reload lost it. Read it from the cart instead.

Written with Claude Code

No pull request, checks or deployments

试试看

  1. 点击面板顶部的堆叠图标,列出尚未运行智能体的检出目录。

  2. 展开某行工作树,查看其文件夹、分支和操作按钮。

  3. 点击 在历史中显示 查看其对应分支。

  • 与仓库一同列出

    仓库的工作树会同时出现在侧边栏和“工作树与智能体”面板中,每条都标有分支和正在工作的智能体(如有)。

  • 在新工作树中检出

    从分支菜单中直接将其检出到独立的工作树,而无需打断当前手头的工作。“文件”菜单中的“新建工作树”可基于新分支直接创建。

  • 每个工作树一个标签页

    工作树会在独立标签页中打开,以仓库名和工作树名命名。开启相应设置后,它会自动与所属仓库的标签页归为一组。

  • 已检出的分支

    如果某个分支已经在工作树中检出,它的菜单会引导你打开那个标签页、在访达中显示文件夹或在那里打开终端,而不会重复检出。

  • 安全移除

    移除工作树时,如果发现有智能体正在其中工作会向你发出警告,且绝不会强行删掉你尚未提交的文件。

Questions, *answered*

Can I check out two branches at once?
Yes. From a branch's menu, check it out in a worktree of its own, a second folder for the same repository, and keep working where you are. Each worktree opens in its own tab.
What happens to a worktree an agent is using?
Remove Worktree warns you if an agent is working there, and never forces away files you have not committed.

继续探索

全部功能

下载 gitā

免费。支持 macOS 14 或更高版本,兼容 Apple silicon 与 Intel。