Revert a file to a previous commit
git_revert_fileUndo a bad edit by restoring one file to its state at a chosen commit, then automatically commit the revert.
Instructions
Restore one file to its state at a given commit (from git_history), then commit the revert. Use to undo a bad edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit | Yes | Commit hash from git_history, e.g. 'a1b2c3d' | |
| filename | Yes |