diff --git a/_partials/git.md b/_partials/git.md index bb4ce30e..4e6846d7 100644 --- a/_partials/git.md +++ b/_partials/git.md @@ -11,6 +11,7 @@ To install `git`: ```bash sudo apt update sudo apt install -y git +git config --global init.defaultBranch main ```` These commands will ask for your password: type it in. diff --git a/_partials/macos_homebrew.md b/_partials/macos_homebrew.md index fa3bdb93..221d51f4 100644 --- a/_partials/macos_homebrew.md +++ b/_partials/macos_homebrew.md @@ -37,3 +37,9 @@ brew upgrade imagemagick || brew install imagemagick brew upgrade jq || brew install jq brew upgrade openssl || brew install openssl ``` + +Configure the newly installed git software: + +```bash +git config --global init.defaultBranch main +``` diff --git a/macos.md b/macos.md index 98b8f12b..7ce0fa17 100644 --- a/macos.md +++ b/macos.md @@ -170,6 +170,12 @@ brew upgrade jq || brew install jq brew upgrade openssl || brew install openssl ``` +Configure the newly installed git software: + +```bash +git config --global init.defaultBranch main +``` + ## Visual Studio Code diff --git a/ubuntu.md b/ubuntu.md index 7d0b1e28..54e1d48f 100644 --- a/ubuntu.md +++ b/ubuntu.md @@ -129,6 +129,7 @@ To install `git`: ```bash sudo apt update sudo apt install -y git +git config --global init.defaultBranch main ```` These commands will ask for your password: type it in. diff --git a/windows.md b/windows.md index e79576a9..790c2975 100644 --- a/windows.md +++ b/windows.md @@ -480,6 +480,7 @@ To install `git`: ```bash sudo apt update sudo apt install -y git +git config --global init.defaultBranch main ```` These commands will ask for your password: type it in.