1.1.1
ait pull — 完整參考
匯入遠端 Line 的 Snapshot 歷史,判定 head 之間的關係,並可選地物化選定的結果。
適用對象: 開發者與 coding agent
作用邊界#
用途: 匯入遠端 Line 的 Snapshot 歷史,判定 head 之間的關係,並可選地物化選定的結果。
影響類別: 匯入會改動本地權威;merge 和 restore 選項還可能改變 Line 或工作區狀態。
覆蓋: ait pull 下共 1 個公開 help surface。
下面的程式碼區塊原樣保留 1.1.1 二進位的輸出,包含它給出的每一個引數、選項、 預設值、可選值、衝突關係和必填要求。
完整命令樹#
ait pull原樣輸出的 help#
ait pull#
二進位描述: Import the selected remote Line's reachable Snapshot chain and safely create or fast-forward its local Line. The configured default remote and current local Line are used when omitted. Workspace files remain unchanged unless --restore is supplied.
Import the selected remote Line's reachable Snapshot chain and safely create or fast-forward its local Line. The configured default remote and current local Line are used when omitted. Workspace files remain unchanged unless --restore is supplied.
Usage: ait pull [OPTIONS]
Options:
--remote <REMOTE>
Use this configured remote; defaults to the repository's default remote.
--line <LINE>
Import this remote Line and safely create or fast-forward its local Line; defaults to the current local Line.
--merge
Merge a divergent imported remote head into the current local Line and restore the resulting files; requires --restore and a clean workspace.
--restore
Restore the pulled Line's files into the workspace and select that Line; rejected when the local Line is ahead of the remote.
--force
Allow --restore to overwrite local workspace changes; requires --restore and cannot be used with --merge.
--json
Emit the pull result as machine-readable JSON.
-h, --help
Print help (see a summary with '-h')說明
匯入所選遠端 Line 可達的 Snapshot 鏈,並安全地建立或快進其本地 Line。省略時使用設定的預設遠端和目前本地 Line。除非提供 --restore,工作區檔案保持不變。