I don't know how to set the HEAD
reference for a bare repository.
Throw the BareRepositoryException
with message
Additional information: An error was raised by libgit2. Category = Repository (BareRepo).
when I trying repo.Checkout(repo.Branches["balabala"])