Before your first commit, Git needs to know who you are. Here is how to set your global username and email, verify them, and make sure your commits are linked to your account.
Run the following command, replacing the example name with your actual name:
git config --global user.name "Your Name"
Verify it was set correctly:
git config --global user.name
Run the following command, replacing the example address with your actual email:
git config --global user.email "your-email@example.com"
Verify it was set correctly:
git config --global user.email
You can run both commands back to back to set up your identity in one go:
git config --global user.name "Your Name" git config --global user.email "your-email@example.com"
To see your full Git configuration at once:
git config --global --list