Git

Git Setup for Hugo Blog With Github Pages

This is a short tutorial on how to use Git to manage Hugo blog contents, themes, and generated static files that will be hosted on GitHub Pages. Initialize the Blog and the GitHub repo First, you need to initialize a Hugo blog, and enter the site folder: hugo new site <sitename> cd <sitename> This creates an empty site with name sitename, the site has a structure like this: Then you initialize a local Git repository in this folder with: