Skip to content

poly revert

Revert local changes back to the last known remote state.

Examples:

poly revert
poly revert file1.yaml file2.yaml

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:

{
  "success": true,
  "files_reverted": []
}