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 | 打印帮助 |