Configuration

Configuration

Set identity

$ git config --global user.name "Your Name"
$ git config --global user.email "you@example.com"

Set default branch name

$ git config --global init.defaultBranch main

Set default pull strategy to rebase

$ git config --global pull.rebase true

Create an alias

$ git config --global alias.hist "log --oneline --graph --all"

See where a setting comes from

$ git config --list --show-origin
On this page