GitCheatSheet.org logo
Home / How To

Set the user name for the current repository

Inside the repository that you want to configure, run:

git config --local user.name "John Doe"

The --local parameter is optional, as it is the default.