Configure Git User & Email

To use Git, you need to configure your user name and email. You can configure them either globally or for each project. Here are the commands to do so.

Global Configuration:

git config --global user.name "Ramesh Thiruchelvam"
git config --global user.email "ramesh.thiruchelvam@cambio.lk"

Project Configuration:

git config user.name "Ramesh Thiruchelvam"
git config user.email "ramesh.thiruchelvam@gmail.com"

If you need to modify the author of a commit, you can use the following command:

git commit --amend --author="Ramesh Thiruchelvam <ramesh.thiruchelvam@gmail.com>"