-s, --source <tree> | Restore the working tree files with the content from the given tree |
-p, --patch | Interactively select hunks in the difference between the restore source and the restore location |
-W, --worktree | Use the worktree as the restore location |
-S, --staged | Use staging as the restore location |
-q, --quiet | Quiet, suppress feedback messages |
--progress | Progress status is reported on the standard error stream by default when it is attached to a terminal |
--no-progress | Disable progress status reporting |
-2, --ours | When restoring paths from the index, check out stage #2 (ours) for unmerged paths |
-3, --theirs | When re out paths from the index, check out stage #3 (theirs) for unmerged paths |
-m, --merge | When restoring files on the working tree from the index, recreate the conflicted merge in the unmerged paths |
--conflict <style> | The same as --merge option, but changes the way the conflicting hunks are presented |
--ignore-unmerged | When restoring files on the working tree from the index, do not abort the operation if there are unmerged entries |
--ignore-skip-worktree-bits | In sparse checkout mode, by default is to only update entries matched by <pathspec> and sparse patterns in $GIT_DIR/info/sparse-checkout |
--recurse-submodules | If <pathspec> names an active submodule and the restore location includes the working tree, the submodule will only be updated if this option is given, in which case its working tree will be restored to the commit recorded in the superproject, and any local modifications overwritten |
--no-recurse-submodules | Submodules working trees will not be updated |
--overlay | In overlay mode, the command never removes files when restoring |
--no-overlay | In no-overlay mode, tracked files that do not appear in the --source tree are removed, to make them match <tree> exactly |
--pathspec-from-file <file> | Pathspec is passed in <file> instead of commandline args. If <file> is exactly - then standard input is used |
--pathspec-file-nul | Only meaningful with --pathspec-from-file. Pathspec elements are separated with NUL character and all other characters are taken literally (including newlines and quotes) |
-- | Do not interpret any more arguments as options |