Different user information per git repository

Posted by Vinicius de Melo Rocha on May 27th, 2019

If you want to commit your changes without using the global name and email, you can specify a different one by adding the following configuration to the .git/config file of a specific repository.

    name = "your name"
    email = your@email.com

Git will use that instead of your global user.name and user.email variables.