diff --git a/config-git.sh b/config-git.sh index 09f6d54..d413f58 100755 --- a/config-git.sh +++ b/config-git.sh @@ -45,3 +45,11 @@ then echo "File not exsit: $ExcludesFile" 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 \ No newline at end of file