Add command to set a default branch name

This commit is contained in:
James Skemp 2021-07-11 12:47:14 -05:00
parent aaa6f1d8b4
commit 7a287704ce
1 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,12 @@ git config --list --show-origin
git config --system --edit
```
## Defaults
```bash
# Set the default branch name when using git init. Here set to 'main'.
git config --global init.defaultBranch main
```
## Beyond Compare
If you use [Beyond Compare](https://www.scootersoftware.com/), the following sets up Git to use it for diff and merge.