浏览 1.0.0 文档
1.0.0 文档修订 2

ait stash — 完整参考

记录、查看、应用并删除本地未完成工作的 stash 条目。

适用人群: 开发者与 coding agent

作用边界#

用途: 记录、查看、应用并删除本地未完成工作的 stash 条目。

影响类别: 改动本地 stash 和工作区;list 和 show 为只读。

覆盖: ait stash 下共 7 个公开 help surface。

下面的代码块原样保留 1.0.0 二进制的输出,包含它给出的每一个参数、选项、 默认值、可选值、冲突关系和必填要求。

完整命令树#

Code · text
ait stash
ait stash save
ait stash list
ait stash show
ait stash apply
ait stash pop
ait stash drop

原样输出的 help#

ait stash#

二进制描述: Park, inspect, restore, and drop temporary local-only workspace Snapshots without advancing Line heads. A stash can be restored only while its source Line is current.

Code · text
Park, inspect, restore, and drop temporary local-only workspace Snapshots without advancing Line heads. A stash can be restored only while its source Line is current.

Usage: ait stash <COMMAND>

Commands:
  save   Save modified workspace content as a temporary local-only stash.
  list   List active local-only stash metadata without changing the workspace.
  show   Inspect metadata for one active local-only stash.
  apply  Restore a same-Line stash and retain its stash record.
  pop    Restore a same-Line stash and then drop its stash record.
  drop   Drop an active stash record without changing workspace content.
  help   Print this message or the help of the given subcommand(s)

Options:
  -h, --help
          Print help (see a summary with '-h')

ait stash save#

二进制描述: Save modified managed-workspace content as a temporary local-only stash Snapshot without advancing the current Line head. By default, restore the current Line head into the workspace after saving; --keep-workspace leaves the saved content materialized.

Code · text
Save modified managed-workspace content as a temporary local-only stash Snapshot without advancing the current Line head. By default, restore the current Line head into the workspace after saving; --keep-workspace leaves the saved content materialized.

Usage: ait stash save [OPTIONS]

Options:
      --message <MESSAGE>
          Record an optional human-readable message with the stash.

      --keep-workspace
          Leave the saved content materialized; the Line head stays unchanged, so the workspace remains dirty relative to it.

      --json
          Emit the complete machine-readable JSON result.

  -h, --help
          Print help (see a summary with '-h')

ait stash list#

二进制描述: List active local-only stash metadata without changing the workspace.

Code · text
List active local-only stash metadata without changing the workspace.

Usage: ait stash list [OPTIONS]

Options:
      --json  Emit the complete machine-readable JSON result.
  -h, --help  Print help

ait stash show#

二进制描述: Inspect metadata for one active local-only stash without changing the workspace. This command reports the stash record and Snapshot summary; it does not display a content diff.

Code · text
Inspect metadata for one active local-only stash without changing the workspace. This command reports the stash record and Snapshot summary; it does not display a content diff.

Usage: ait stash show [OPTIONS] <STASH_ID>

Arguments:
  <STASH_ID>
          Exact active stash ID.

Options:
      --json
          Emit the complete machine-readable JSON result.

  -h, --help
          Print help (see a summary with '-h')

ait stash apply#

二进制描述: Replace the entire managed workspace with an active stash Snapshot and retain its stash record, without moving the current Line head. The current Line must be the stash's source Line. This is full workspace materialization, not a patch or three-way merge.

Code · text
Replace the entire managed workspace with an active stash Snapshot and retain its stash record, without moving the current Line head. The current Line must be the stash's source Line. This is full workspace materialization, not a patch or three-way merge.

Usage: ait stash apply [OPTIONS] <STASH_ID>

Arguments:
  <STASH_ID>
          Exact active stash ID created on the current Line.

Options:
      --force
          Overwrite unsaved managed-workspace changes; this does not permit restoring a stash from another Line.

      --json
          Emit the complete machine-readable JSON result.

  -h, --help
          Print help (see a summary with '-h')

ait stash pop#

二进制描述: Replace the entire managed workspace with an active stash Snapshot and drop its stash record only after a successful restore, without moving the current Line head. The current Line must be the stash's source Line. This is full workspace materialization, not a patch or three-way merge.

Code · text
Replace the entire managed workspace with an active stash Snapshot and drop its stash record only after a successful restore, without moving the current Line head. The current Line must be the stash's source Line. This is full workspace materialization, not a patch or three-way merge.

Usage: ait stash pop [OPTIONS] <STASH_ID>

Arguments:
  <STASH_ID>
          Exact active stash ID created on the current Line.

Options:
      --force
          Overwrite unsaved managed-workspace changes; this does not permit restoring a stash from another Line.

      --json
          Emit the complete machine-readable JSON result.

  -h, --help
          Print help (see a summary with '-h')

ait stash drop#

二进制描述: Drop an active stash record without changing workspace content.

Code · text
Drop an active stash record without changing workspace content.

Usage: ait stash drop [OPTIONS] <STASH_ID>

Arguments:
  <STASH_ID>  Exact active stash ID.

Options:
      --json  Emit the complete machine-readable JSON result.
  -h, --help  Print help

Version authority

Checked against the exact 1.0.0 source

This page is public documentation, not a second product contract. Use the exact source and distribution contract for release authority.

Owning component Snapshots
  • ait-coreSNP-B06A48DA0245
  • ait-serverSNP-E90456E6425E
  • ait-runnerSNP-6B0A1BB3AFAD
  • ait-pythonSNP-973E3BFAF3DE
  • ait-nodeSNP-F962CC66AA62