GitNifty
    Preparing search index...

    Type Alias RestoreFlag

    RestoreFlag:
        | "--staged"
        | "--worktree"
        | "--quiet"
        | "--progress"
        | "--source=HEAD"
        | `--source=HEAD~${number}`
        | `--source=${string}`

    Represents valid flags for the git restore command.

    These flags control what is restored and from where. Useful for staging, restoring from a specific commit, or restoring only to the working tree.

    • --staged: Restore changes to the index (unstages files).
    • --worktree: Restore only to the working directory.
    • --quiet: Suppress feedback messages.
    • --progress: Force progress reporting.
    • --source=<commit-ish> – Restore from a specific commit, branch, or tag.
    - `--source=HEAD`Restore from the latest commit on current branch.
    - `--source=HEAD~1`Restore from one commit before HEAD.
    - `--source=abc1234`Restore from a specific commit hash.
    - `--source=main`Restore from a named branch.