After installing Git, you can also configure it – most importantly, you can set a username and email address that will be connected to all your code snapshots.
To do so you need to run below commands
git config --global user.name "your-username"
git config --global user.email "your-email"
you can learn more about git configuration on git official website here: Git Config