git config user.name 'Your Name'

Category: Git - Core

git config user.name 'Your Name'

Set the commit author name for the current repo

Sets your name for commits in this repository. Git records the author name with every commit.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.