change default new-branch name from master to main

This commit is contained in:
Mylloon 2022-08-21 16:40:20 +02:00
parent 41e50950fd
commit fc8790b60d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 2 additions and 0 deletions

View file

@ -344,6 +344,7 @@ then
# === Git == # === Git ==
git config --global pull.rebase true git config --global pull.rebase true
git config --global init.defaultBranch main
echo -e "\nInstallation terminée.\nIl faut redémarrer l'ordinateur.\nPensez à activer les extensions après redémarrage." echo -e "\nInstallation terminée.\nIl faut redémarrer l'ordinateur.\nPensez à activer les extensions après redémarrage."
else else

1
wsl.sh
View file

@ -174,6 +174,7 @@ then
# === Git == # === Git ==
git config --global pull.rebase true git config --global pull.rebase true
git config --global init.defaultBranch main
echo -e "\nInstallation terminée !\nIl faut redémarrer WSL (dans Powershell = wsl --shutdown)." echo -e "\nInstallation terminée !\nIl faut redémarrer WSL (dans Powershell = wsl --shutdown)."
echo -e "---\nPense bien à paramétrer ton terminal, exemple avec Windows Terminal :" echo -e "---\nPense bien à paramétrer ton terminal, exemple avec Windows Terminal :"