1.1.1
ait git — 完整參考
在 Git 與 AIT 原生儲存庫模型之間匯入、匯出並映象歷史。
適用對象: Repository 所有者與遷移維運
作用邊界#
用途: 在 Git 與 AIT 原生儲存庫模型之間匯入、匯出並映象歷史。
影響類別: 歷史轉換與同步;方向、目標和對映選項決定被改動的是哪個權威。
覆蓋: ait git 下共 4 個公開 help surface。
下面的程式碼區塊原樣保留 1.1.1 二進位的輸出,包含它給出的每一個引數、選項、 預設值、可選值、衝突關係和必填要求。
完整命令樹#
ait git
ait git import
ait git export
ait git mirror原樣輸出的 help#
ait git#
二進位描述: Import, export, or mirror history between Git and AIT.
Import, export, or mirror history between Git and AIT.
Usage: ait git <COMMAND>
Commands:
import Import Git commits, branches, and tags into AIT with a resumable immutable identity map.
export Export AIT lines, tags, and ordered Snapshot DAG history to Git without force-updating refs.
mirror Reconcile a Git endpoint and AIT through checkpointed, divergence-safe ref-set transactions.
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help說明
在 Git 與 AIT 之間匯入、匯出或映象歷史。
| 引數 / 選項 | 說明 |
|---|---|
import | 以可恢復且不可變的身份對映,將 Git 提交、分支和標籤匯入 AIT。 |
export | 將 AIT 的 lines、tags 和有序 Snapshot DAG 歷史匯出到 Git,不強制更新 refs。 |
mirror | 透過帶檢查點、分歧安全的引用集事務,調和一個 Git 端點與 AIT。 |
help | 列印本訊息或給定子命令的幫助 |
-h, --help | 列印幫助 |
ait git import#
二進位描述: Import Git commits, branches, and tags into AIT with a resumable immutable identity map.
Import Git commits, branches, and tags into AIT with a resumable immutable identity map.
Usage: ait git import [OPTIONS] <SOURCE>
Arguments:
<SOURCE> Git source to import; accepts a local repository path or a Git remote URL.
Options:
--all-branches-and-tags Import every Git branch and tag instead of only the source HEAD branch.
--dry-run Inspect and validate the immutable import plan without writing AIT data.
--json Emit the complete machine-readable JSON result.
-h, --help Print help說明
以可恢復且不可變的身份對映,將 Git 提交、分支和標籤匯入 AIT。
| 引數 / 選項 | 說明 |
|---|---|
<SOURCE> | 要匯入的 Git 源;接受本地儲存庫路徑或 Git 遠端 URL。 |
--all-branches-and-tags | 匯入每個 Git 分支和標籤,而不只是源 HEAD 分支。 |
--dry-run | 檢視並校驗不可變的匯入計劃,不寫入 AIT 資料。 |
--json | 輸出完整的機器可讀 JSON 結果。 |
-h, --help | 列印幫助 |
ait git export#
二進位描述: Export AIT lines, tags, and ordered Snapshot DAG history to Git without force-updating refs.
Export AIT lines, tags, and ordered Snapshot DAG history to Git without force-updating refs.
Usage: ait git export [OPTIONS] <TARGET>
Arguments:
<TARGET> Local Git repository path to update, or a new path whose parent already exists.
Options:
--all-lines-and-tags Export every headed AIT Line and every AIT Tag instead of only the current Line.
--dry-run Inspect and validate the immutable export plan without writing the target or AIT data.
--json Emit the complete machine-readable JSON result.
-h, --help Print help說明
將 AIT 的 lines、tags 和有序 Snapshot DAG 歷史匯出到 Git,不強制更新 refs。
| 引數 / 選項 | 說明 |
|---|---|
<TARGET> | 要更新的本地 Git 儲存庫路徑,或一個父目錄已存在的新路徑。 |
--all-lines-and-tags | 匯出每個有 head 的 AIT Line 和每個 AIT Tag,而不只是目前 Line。 |
--dry-run | 檢視並校驗不可變的匯出計劃,不寫入目標或 AIT 資料。 |
--json | 輸出完整的機器可讀 JSON 結果。 |
-h, --help | 列印幫助 |
ait git mirror#
二進位描述: Reconcile a Git endpoint and AIT through checkpointed, divergence-safe ref-set transactions.
Reconcile a Git endpoint and AIT through checkpointed, divergence-safe ref-set transactions.
Usage: ait git mirror [OPTIONS] --direction <DIRECTION> <ENDPOINT>
Arguments:
<ENDPOINT> Git source for inbound mode; local Git path for outbound or bidirectional mode.
Options:
--direction <DIRECTION> Select the permitted change direction; one-way modes block opposite-side changes and all modes block divergence. [possible values: inbound, outbound, bidirectional]
--dry-run Classify and validate the complete branch and tag set without writing changes.
--json Emit the complete machine-readable JSON result.
-h, --help Print help說明
透過帶檢查點、分歧安全的引用集事務,調和一個 Git 端點與 AIT。
| 引數 / 選項 | 說明 |
|---|---|
<ENDPOINT> | 入站模式的 Git 源;出站或雙向模式的本地 Git 路徑。 |
--direction <DIRECTION> | 選擇允許的變更方向;單向模式阻止另一側的變更,且所有模式都阻止分歧。[possible values: inbound, outbound, bidirectional] |
--dry-run | 對完整 branch 與 tag 集合分類並校驗,但不寫入改動。 |
--json | 輸出完整的機器可讀 JSON 結果。 |
-h, --help | 列印幫助 |