From f66527699c9e1ac02e8255fcd1b12c5e41325211 Mon Sep 17 00:00:00 2001 From: Lomig Enfroy Date: Wed, 25 Aug 2021 19:34:17 +0200 Subject: [PATCH 1/2] Add Git 2.28 option to rename Master branches to Main as default --- _partials/git.md | 1 + _partials/macos_homebrew.md | 6 ++++++ macos.md | 5 +++++ ubuntu.md | 1 + windows.md | 1 + 5 files changed, 14 insertions(+) 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..14502ff0 100644 --- a/macos.md +++ b/macos.md @@ -170,6 +170,11 @@ 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. From 092ee12682e732526faa8710b4173554090b072f Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 25 Aug 2021 17:48:34 +0000 Subject: [PATCH 2/2] setup guides generated --- macos.md | 1 + 1 file changed, 1 insertion(+) diff --git a/macos.md b/macos.md index 14502ff0..7ce0fa17 100644 --- a/macos.md +++ b/macos.md @@ -176,6 +176,7 @@ Configure the newly installed git software: git config --global init.defaultBranch main ``` + ## Visual Studio Code ### Installation