libgit2 / libgit2sharp

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

Add support to set the initial branch when performing "git init" #1929

Open zentron opened 2 years ago

zentron commented 2 years ago

git init currently exposes an option to set the branch name. Although the property for this is exposed via a property InitialHead on the options builder that gets passed down to the native code, there is currently no way for a user to provide a value.