git change user for single repo code example Example: git change user for single repo $ git config user.name "John Doe"