From 784ed8f6f82161ff50d1a428b28f4e1151bf52fd Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sat, 11 Sep 2021 14:44:02 +0800 Subject: [PATCH] u --- config-git.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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