I'm trying to achieve the result of the following git commands programmatically using go-git:
git fetch
git reset --hard origin/<some_branch>
So there's git.Worktree.Reset(), which gets git.ResetOptions, which has a Commit property which is of type plumbing.Hash. Unfortunately, I can't figure out how to get the hash for origin/<some_branch>.
How can I do that?