Throws away your local changes and restores files to the version from the changeset you checked out or last pulled. Deleted tracked files are restored too. Run it from the root of a checkout (the folder that contains .mmt). File names are relative to that folder; on Windows use backslashes (templates\sfnt.mvt), because a path with forward slashes doesn’t match and is silently ignored.
Usage#
mmt revert [--all] [filepaths ...]
Arguments#
| Argument | Short | Required | Description |
|---|---|---|---|
--all |
-a |
No | Revert all files. |
filepaths ... |
No | The list of local files to revert. |
Examples#
mmt revert templates/sfnt.mvt
mmt revert --all
Revert needs either --all or at least one file. It prints Reverted the following files: and the list.