feat: set git defaultBranch to main

This commit is contained in:
Bjarke Sporring
2026-01-15 13:55:55 +01:00
parent c3d9d3337c
commit 0183a06134

View File

@@ -636,6 +636,9 @@ if ($userChoice -ne "CloneOnly") {
-MinVersion "2.23" ` -MinVersion "2.23" `
-AdditionalArgs "-e" -AdditionalArgs "-e"
Write-Host "Setting the init.defaultBranch to be \"main\""
git config --global init.defaultBranch main
# Verify Git version specifically # Verify Git version specifically
if ($results.Git) { if ($results.Git) {
if (-not (Test-GitVersion)) { if (-not (Test-GitVersion)) {