By default every file is restored from the change’s parents, undoing the change’s edits. Name PATHS to restore only those files, or use –from to restore from a different commit. The files on disk are updated to match.
Usage
af restore [OPTIONS] [PATHS]...Arguments
-
[PATHS]...Glob patterns, from the repository root, selecting the files to restore; all if omitted
Options
-
--from <FROM>Commit to restore from, in hex; defaults to the change’s parents
Global options
Every af command also takes the global options.
Examples
af restore src/parser.rs
af restore --from main src/parser.rs