Life has no purpose, only process. The so-called ultimate purpose is nothingness. "What Zarathustra Says"-Nietzsche
The system was reinstalled a few days ago, and the blog has to be reconfigured. Here I will explain to you that after restarting Git, we need to re-enter the personal account related information, which is also our user name and email, that is, in any interface of git Execute the following command:
git config --global user.name "此处填你的用户名"
git config --global user.email "此处填写你的邮箱"
If no error is reported, the configuration is successful.
Then I was uploading my blog file to Github, but after configuring my personal account, I still got an error after uploading, the error content is as follows:
The error is: bash: hexo: command not found
Solution: Based on the principle that the problem can be solved without recurring, first check whether node and npm are normal, and enter the following commands in sequence:
node -v
npm -v
If the version information can be displayed, it indicates that there is no problem with node and npm, as follows:
Finally, the editor also re-downloaded hexo directly, created a new folder, and then directly run the following command to download hexo (downloading will be a bit slow):
npm install hexo -cli -g
After downloading, you can upload it to Github.