Everytime I configure a new PC or env, I search for this:

git config --global user.name "John Doe"
git config --global user.email "[email protected]"
git config --global gpg.program gpg
git config --global pull.ff only
git config --global commit.gpgsign true
git config --global init.defaultBranch main
git config --global push.default current
git config user.email "[email protected]"