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.

Interative use

When pijul revert is invoked interactively, the user will be asked a series of questions with the prompt [ynkad]. The possible answers are:

  • y: revert the current change.
  • n: don't revert the change.
  • k: undo the previous answer and go back to the previous change.
  • a: revert all the following changes.
  • d: do not revert any of the following changes.

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.