feat: set git defaultBranch to main
This commit is contained in:
@@ -636,6 +636,9 @@ if ($userChoice -ne "CloneOnly") {
|
||||
-MinVersion "2.23" `
|
||||
-AdditionalArgs "-e"
|
||||
|
||||
Write-Host "Setting the init.defaultBranch to be \"main\""
|
||||
git config --global init.defaultBranch main
|
||||
|
||||
# Verify Git version specifically
|
||||
if ($results.Git) {
|
||||
if (-not (Test-GitVersion)) {
|
||||
|
||||
Reference in New Issue
Block a user