book-git-commands/src/configuration/git.md

303 B

Git configuration

# See where configuration options are set.
git config --list --show-origin

# Edit system/global/local.
git config --system --edit

Defaults

# Set the default branch name when using git init. Here set to 'main'.
git config --global init.defaultBranch main