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 "email@example.com" 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.