跳至主要內容
日常 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. 按一下 在歷史中顯示 查看其對應分支。

  • 與儲存庫一同列出

    儲存庫的工作樹會同時出現在側邊欄與「工作樹與代理」面板中,每列都標有分支與正在工作的代理(如有)。

  • 在新工作樹中檢出

    從分支選單中直接將其檢出到獨立的工作樹,而無需打斷目前手頭的工作。「檔案」選單中的「新增工作樹」可基於新分支直接建立。

  • 每個工作樹一個標籤頁

    工作樹會在獨立標籤頁中開啟,以儲存庫名稱與工作樹名稱命名。開啟相應設定後,它會自動與所屬儲存庫的標籤頁歸為一組。

  • 已檢出的分支

    如果某個分支已經在工作樹中檢出,它的選單會引導你開啟那個標籤頁、在 Finder 中顯示資料夾或在那裡開啟終端機,而不會重複檢出。

  • 安全移除

    移除工作樹時,如果發現有代理正在其中工作會向你發出警告,且絕不會強行刪掉你尚未提交的檔案。

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。