github icon
github icon
avatar

shafikshaon / Setting up Project-Specific Git Configuration

Created Tue, 23 Mar 2021 09:19:09 +0600 Modified Sun, 25 Feb 2024 20:22:56 +0000
47 Words 1 min

Sometimes we need to project-specific git user configurations.

How we achieve this? Just run the following command in the project directory.

git config --local user.name "AuthorName" 
git config --local user.email "[email protected]" 

Now, all commit authors will be new names and emails for the configured project.

That’s all!

Commit ID: c5d17ea267e3042c327c7fa17af122cf4c614f7b ∙ View Commit on GitHub