You can track each commit by setting name and email variables. The name variable specifies the name, while the email variable identifies the email address associated with Git commits. You can set these using the following commands −
git config --global user.email "firstname.lastname@example.org" git config --global user.name "your_name"
When you run the above commands, you will get the user name and email address as shown in the following image.