Configure Git Identity
Set your Git username and email globally inside WSL2. These values appear in every commit you make.
git config --global user.name "Your Full Name"git config --global user.email "your.email@example.com"Verify the configuration:
git config --global --listYou should see user.name and user.email in the output.
Optional but recommended defaults:
git config --global init.defaultBranch maingit config --global pull.rebase true