The error message suggests that the Git deployment failed because the user’s email address and name were not configured in Git. To resolve this issue, follow the instructions provided in the error message:
- Open the command prompt and navigate to the project directory.
- Run the following commands to set your Git identity:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Replace “you@example.com” with your email address and “Your Name” with your name. Omit the --global
option if you want to set the identity only for this repository.
- Try deploying again by running the
npx hexo d
command.