Interface RestoreOptions

RestoreOptions defines the supported options for the Git restore command.

Hierarchy

  • RestoreOptions

Properties

--conflict?: string

Overrides the merge.conflictStyle configuration variable.

--ignore-skip-worktree-bits?: null

Ignores the sparse patterns and unconditionally restores specified files.

--ignore-unmerged?: null

Does not abort the operation if there are unmerged entries.

--merge?: null

Recreates the conflicted merge in the unmerged paths when restoring files in the working tree from the index.

--no-overlay?: null

Removes tracked files that do not appear in the --source tree. See also --overlay.

--no-progress?: null

Suppresses progress reports to the standard error stream. See also --progress.

--no-recurse-submodules?: null

Does not update the content of all active submodules.

--ours?: null

Uses stage #2 for unmerged paths when restoring files in the working tree from the index. See also --thiers.

--overlay?: null

Never removes files when restoring. See also --no-overlay.

--progress?: null

Forces progress reports to the standard error stream. See also --no-progress.

--quiet?: null

Suppresses feedback messages.

--recurse-submodules?: null

Updates the content of all active submodules.

--source?: string

Restores working tree files with content from the given tree.

--staged?: null

Restores files to the index. See also --worktree.

--thiers?: null

Uses stage #3 for unmerged paths when restoring files in the working tree from the index. See also --ours.

--worktree?: null

Restores files to the working tree. See also --staged.