Get and resolves the current HEAD reference of the repository.
Note that the returned ref is already resolved (if HEAD is symbolic). If you want to retrieve the symbolic ref called HEAD, then use lookup_reference instead.
this |
a Repository. |
a Ref |