所有命令 · evidence
pm history redact
Redact sensitive literals/patterns from an item history stream and recompute hashes.
Redact sensitive literals/patterns from an item history stream and recompute hashes.
用法
pm history redact [options] <id>参数
| <id> | Item id | 必填 |
|---|
选项
| --literal <value> | Literal string to redact (repeatable) | 可选 |
|---|---|---|
| --regex <value> | Regex pattern to redact (repeatable; accepts /pattern/flags or raw pattern) | 可选 |
| --replacement <value> | Replacement string (default: "[redacted]") | 可选 |
| --dry-run | Preview redaction impact without writing item/history files | 可选 |
| --author <value> | Mutation author | 可选 |
| --message <value> | Audit history message for the redaction marker entry | 可选 |
| --force | Force ownership/lock override | 可选 |
示例
pm history redact --help