Skip to content

Configure Git Identity

Set your Git username and email globally inside WSL2. These values appear in every commit you make.

Terminal window
git config --global user.name "Your Full Name"
git config --global user.email "your.email@example.com"

Verify the configuration:

Terminal window
git config --global --list

You should see user.name and user.email in the output.

Optional but recommended defaults:

Terminal window
git config --global init.defaultBranch main
git config --global pull.rebase true