1.0.0
文档修订 2
ait git — 完整参考
在 Git 与 AIT 原生仓库模型之间导入、导出并镜像历史。
适用人群: Repository 所有者与迁移运维
作用边界#
用途: 在 Git 与 AIT 原生仓库模型之间导入、导出并镜像历史。
影响类别: 历史转换与同步;方向、目标和映射选项决定被改动的是哪个权威。
覆盖: ait git 下共 4 个公开 help surface。
下面的代码块原样保留 1.0.0 二进制的输出,包含它给出的每一个参数、选项、 默认值、可选值、冲突关系和必填要求。
完整命令树#
ait git
ait git import
ait git export
ait git mirror原样输出的 help#
ait git#
参考描述: 在 Git 与 AIT 原生仓库模型之间导入、导出并镜像历史。
1.0.0 二进制没有为这个 surface 单独给出描述,上面那句是文档补充的说明。 下面是解析器提供的完整用法和选项,未作改动。
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 helpait 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 persistent AIT mutation.
--json Emit the complete machine-readable JSON result.
-h, --help Print helpait 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 target or AIT mutation.
--json Emit the complete machine-readable JSON result.
-h, --help Print helpait 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/tag ref set without persistent mutation.
--json Emit the complete machine-readable JSON result.
-h, --help Print help