pijul revert

Reset the working directory to the state of the pristine.

Usage

pijul revert [-h | --help] [-V | --version] [--repository <repository>] [--branch <branch>] [-a | --all] [<prefix>…]

Description

Reset the working directory to the state of the pristine. If there were unrecorded changes (i.e. if the pristine is different from the working directory), ask interactively what unrecorded changes to keep.

Example

Reset directory "src" to its recorded state:

pijul revert src

Options

  • -h, --help

    Print a help message and exit.

  • -V, --version

    Print the version of Pijul and exit.

  • --repository <repository>

    Don't run this command in the current directory, run it in <repository> instead.

  • --branch <branch>

    Reset to branch <branch> instead of the current branch (the default).

  • <prefix>…

    Reset only that list of paths. If empty, reset the whole directory.