No identity configured on this machine or user
CommonA new laptop, a server account, or git run as a different user (for example under sudo) whose ~/.gitconfig has no user.name or user.email.
Confirm
git config --show-origin --get user.email; git config --show-origin --get user.name
No output: nothing is set for this user or repository
Fix
- Set it once for your user: git config --global user.name "Your Name" and git config --global user.email you@example.com.
- Or only for this repository: the same commands without --global.
git config --global user.name "Your Name" && git config --global user.email you@example.com
Use the email your Git host knows, so commits link to your account.