Git config
git config reads and changes Git settings. Before your first commit, tell Git your name and email: they are saved in every commit you make.
With --global the setting is for all your repositories. Without it, the setting is only for the repository you are in.
Set your name and email
git config --global user.name "W3Schools Test"
git config --global user.email "test@example.com"
Read your settings
git config user.name
W3Schools Test
git config --global --list
user.name=W3Schools Test
user.email=test@example.com
init.defaultbranch=main