Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Git 2.28 option to rename Master branches to Main as default #319

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _partials/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions _partials/macos_homebrew.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
6 changes: 6 additions & 0 deletions macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down