GIT-RESTORE(1) (NAME) git-restore - (SYNOPSIS) git restore [] [--source=] [--staged] [--worktree] [--] ... git restore [] [--source=] [--staged] [--worktree] --pathspec-from-file= [--pathspec-file-nul] git restore (-p|--patch) [] [--source=] [--staged] [--worktree] [--] [...] (DESCRIPTION) . . --staged --staged --worktree . --staged HEAD . --source . <> git(1) . (OPTIONS) -s , --source= . . --staged HEAD . "..." (merge base) . HEAD . -p, --patch (hunks) . --patch <> git-add(1) . -U, --unified= (diff) (context). diff.context . ( -U -p ). --inter-hunk-context= diff . diff.interHunkContext 0 . -W, --worktree, -S, --staged . . --staged . . -q, --quiet . --no-progress . --progress, --no-progress --quiet . --quiet . --ours, --theirs (ours) (theirs) . tree-ish ( --source) . git rebase git pull --rebase ours theirs . git- checkout(1) . -m, --merge . tree-ish ( --source) . --conflict=