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