fn reset( repo: &Repository, obj: &Object<'_>, config: &Config ) -> CargoResult<()>
git reset --hard to the given obj for the repo.
git reset --hard
obj
repo
The obj is a commit-ish to which the head should be moved.