reset
Reset a Git repository to a specific commit, branch, or tag with options for soft, mixed, or hard modes to manage staged, unstaged, or discarded changes. Simplify repository state management with precision.
Instructions
Reset repository state (soft, mixed, hard).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
mode | No | Reset mode: soft (keep changes staged), mixed (unstage changes), hard (discard changes) | mixed |
pathspec | No | Limit reset to specific paths | |
repoPath | Yes | Absolute path to the git repository | |
target | No | Target commit, branch, or tag to reset to (defaults to HEAD) | HEAD |