git_revert
Revert a Git branch to a specific commit or state. Provide the repository path and commit hash, with an option to stage changes without creating a new commit.
Instructions
Revert the current branch to a commit or state.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
commit | No | Commit hash or reference to revert | |
no_commit | No | Whether to stage changes without committing | |
repo_path | Yes | The path to the local Git repository |