poly revert¶
Revert local changes back to the last known remote state.
Examples:
With no arguments, reverts every local change in the working tree; pass file paths to revert only those files.
| Argument | Description |
|---|---|
files |
List of files to revert. If not specified, reverts all changes. |
Reverting cannot be undone
Reverting discards local edits with no way to recover them — run poly diff or poly status first if you're unsure what will be lost.
--json output shape: