Add command to set a default branch name
This commit is contained in:
parent
aaa6f1d8b4
commit
7a287704ce
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue