Represents valid flags for the git restore command.
git restore
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
--worktree
--quiet
--progress
--source=<commit-ish>
- `--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. Copy
- `--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.
Git.restore
Represents valid flags for the
git restorecommand.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.