23. Reset¶
This method allows to do a git reset for the passed commit in the given repository.
23.1. reset¶
Sets the current head to the specified commit oid and resets the index and working tree to match.
| parameters | Returns |
|---|---|
| luagit2_repository | None |
| luagit2_commit | |
| option (string) |
luagit2_repository: The repository where to reset the changes.luagit2_commit: The commit till where changes are to be reset.option: Specify the type of reset to be performed. This option can be any of soft, mixed or hard .
- Returns None or gives an error.