header.jpg
header.jpg
Patrick Kollitsch Wed, Nov 3, 2021 at 8:03 pm

I really like(d) the gitignore-generator of Toptal.com where you can create your own customised .gitignore file by selecting all tools, frameworks, programming languages etc. that you use in a project. I even contributed (which is not too hard, hint hint). But somehow all these changes were removed by merging the status of what appears to be the parent project for these .gitignore contents. I now added these changes “upstream” and hope they will be added again to the .gitignore template for GoHugo.

The current optimum .gitignore content for a GoHugo project is the following:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Generated files by hugo
/public/
/resources/_gen/
/assets/jsconfig.json
hugo_stats.json
.hugo_build.lock

# Executable may be added to repository
hugo.exe
hugo.darwin
hugo.linux