You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Respect init.defaultBranch configuration value when initializing a Git repository #3719
Contribution welcomeAn issue or feature not currently being worked on, but a contribution would be welcomed!git[ci] enable versioning jobkind:featureA feature request
Git added the init.defaultBranch config value a while ago. It allows specifying the default branch name (to deviate from the historical default "master"). Netbeans currently (version 13.0) uses master regardless of the git global config.
Use case/motivation
When I use Netbeans to initialize a Git repo, I want it to use the branch specified by the mentioned config value. Instead, when I initialize a Git repo and make my first commit it is always on the master branch.
In my case, git config --global init.defaultBranch returns main so I expect NetBeans to respect this.
Contribution welcomeAn issue or feature not currently being worked on, but a contribution would be welcomed!git[ci] enable versioning jobkind:featureA feature request
Activity
ChristoforosKor commentedon Sep 3, 2023
This is a very nice feature to have.