Ggit.Repository.reset

### Method

# Ggit Repositoryreset

#### Declaration [src]

    void
    ggit_repository_reset (
      GgitRepository* repository,
      GgitObject* target,
      GgitResetType reset_type,
      GgitCheckoutOptions* checkout_options,
      GError** error
    )

#### Description [src]

Performs a reset of type `reset_type` on `repository` to `target`, or `error` will be set.

#### Parameters

`target` | `GgitObject`
| The target `GgitObject` which is a commit or a tag.
| The data is owned by the caller of the function.
`reset_type` | `GgitResetType`
| The `GgitResetType` to perform.
`checkout_options` | `GgitCheckoutOptions`
| The `GgitCheckoutOptions` to be used for a HARD reset.
| The data is owned by the caller of the function.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.