You need to look at the Branches
property in Repository
:
/// <summary>
/// Lookup and enumerate branches in the repository.
/// </summary>
public BranchCollection Branches
Source: Line 283 in here: https://github.com/libgit2/libgit2sharp/blob/master/LibGit2Sharp/Repository.cs