git config
git config [--global] <key> <value>
Risk: Safe
What it does
Reads or changes Git settings.
When to use it
Once, when you set up a new computer.
Example
$ git config --global user.name "Aiman"Tell Git your name, for all projects.
$ git config --global user.email "aiman@example.com"Set your email.
$ git config --global init.defaultBranch mainNew repos start on main.
$ git config --listShow all your settings.
Learn it in: Tell Git who you are · Official docs