how to set git user name code example Example: set username git git config --global user.name "My Name"