reset
Reset a Git repository to a specified commit, branch, or tag using soft, mixed, or hard modes. Manage repository state by keeping changes staged, unstaging changes, or discarding changes entirely.
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 |