Skip to main content

git

2023

How to Create a Gitignore File for a Hugo Site
·338 words·2 mins
git
Creating a useful gitignore file means you understand the hugo directory structure. At the very least, a .gitignore file for a Hugo site should contain these lines: /public/ /resources/ .hugo_build.lock When you create a hugo site, it will create the following file structure in your project: