This commit is contained in:
陆柯 2021-09-11 14:44:02 +08:00
parent f35439523f
commit 784ed8f6f8

View File

@ -45,3 +45,11 @@ then
echo "File not exsit: $ExcludesFile" echo "File not exsit: $ExcludesFile"
fi fi
fi fi
echo "---------------------------------------------"
read -p "Set default branch since git 2.28 to master or main? (leave blank for no change) >> " DefaultBranch
if [ $DefaultBranch ]
then
echo "git config --global init.defaultbranch $DefaultBranch"
git config --global init.defaultbranch $DefaultBranch
fi