I have designed my blog using Hugo, and to keep updating the blog, I would use Hugo commands quite often. I have compiled a list of the more frequently used Hugo commands and publish in ‘Notes’ here for record-keeping purpose.

hugo

hugo new blog/post-title.md  // to publish a new blog post
hugo new notes/notes-title.md  //to publish a new note
hugo server  //to start the local server where I can view all my changes
hugo server -D // local server environment where I can see the draft changes as well

Below are the git commands to push my changes to production:

hugo

git add . 
git commit -m "commit title"
git push origin main 
git log --oneline  //to see recent commits
git diff // to see the exact changes
git status   //to check what's changed