headBranch is the branch HEAD names, and is consulted only when the repository has no origin/HEAD, main or master to call the default — the same last resort Git.defaultBranch falls back to.
headBranch
origin/HEAD
main
master
Git.defaultBranch
headBranchis the branch HEAD names, and is consulted only when the repository has noorigin/HEAD,mainormasterto call the default — the same last resortGit.defaultBranchfalls back to.