The code shown below is based on my computer path as a display。
First, you need to enter the content.
cd ~/Desktop/myblog
Second, you can start to create a new blog by calling hugo.
hugo new posts/second-post.md
Then, Speak freely through editing commands。
open -a TextEdit content/posts/second-post.md
Local Preview
hugo server -D
Publish and modify online
git add .
git commit -m "update second post"
git push