how to set username and email for git code example Example 1: list config git git config --list Example 2: git config --global user.name "Server" cat .gitconfig