feat: set git defaultBranch to main
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user