Hugo Commands
I use Hugo for this website. That doesn’t mean I actually know all the commands. These are the basic commands that have been serving me well.
hugo version Create new website package/folder
hugo new site newwebsite cd newwebsite Start server locally
hugo server hugo server -D (for drafts) Add new content
hugo new content posts/my-first-post.md Publish the site
hugo After this, the file will be in the public folder
To clean the public folder for new build: Delete the public folder and rebuild it.
Git Commands
I often find myself forgetting the basic commands for Git. I know it’s dumb but it’s just easy to keep all of them in one place for reference.
Also, for anyone new to Git - these are all the commands you need to get started.
git init # command to convert any folder to a git repo. It creates a .git folder inside and then git tracks the changes made in it.