set git username for a repo code example Example: set username git git config --global user.name "My Name"