libgit2 / libgit2sharp

Git + .NET = ❤
http://libgit2.github.com
MIT License
3.17k stars 886 forks source link

How to get default branch name? #2000

Open sebastianslutzky opened 1 year ago

sebastianslutzky commented 1 year ago

I am used to get the default branch name by running git rev-parse --abbrev-ref origin/HEAD

but I can't find the equivalent on libgi2sharp is this possible?