diff --git a/custom-completions/git/git-completions.nu b/custom-completions/git/git-completions.nu index afbae8dd7..9fff56b37 100644 --- a/custom-completions/git/git-completions.nu +++ b/custom-completions/git/git-completions.nu @@ -688,4 +688,29 @@ export extern "git clone" [ --separate-git-dir: string # place the clone at = and link it here --jobs(-j): int # number of simultaneous submodules fetch ...args -] \ No newline at end of file +] + +# Restores files in working tree or index to previous versions +export extern "git restore" [ + --help(-h) # Display the help message for this command + --source(-s) # Restore the working tree files with the content from the given tree + --patch(-p) # Interactively choose hunks to restore + --worktree(-W) # Restore working tree (default if neither --worktree or --staged is used) + --staged(-S) # Restore index + --quiet(-q) # Quiet, suppress feedback messages + --progress # Force progress reporting + --no-progress # Suppress progress reporting + --ours # Restore from index using our version for unmerged files + --theirs # Restore from index using their version for unmerged files + --merge(-m) # Restore from index and recreate the conflicted merge in unmerged files + --conflict: string # Like --merge but changes the conflict presentation with =