Conversation
Hugo.gitignore
Outdated
| @@ -0,0 +1 @@ | |||
| /public/ | |||
There was a problem hiding this comment.
I suspect the more correct would be "public/"
There was a problem hiding this comment.
The tutorial link leads with a forward slash. shrug. Updated.
There was a problem hiding this comment.
leading with a forward slash is the better approach. It ignores only the one directory called public in the root of the git repository. Without a leading slash, 'public/' ignores all directories that are called public, no matter where they are.
|
@FelicianoTech this is included on https://github.com/dvcs/gitignore |
|
@FelicianoTech apologies for the delay in replying to this. I had a lot of these templates requested, but I couldn't quite figure out the right place for them. I ended up settling on #2857, and you'll see the Hugo template can now be found at Feel free to submit any future improvements to that template, and thanks again for the contribution! |
Reasons for making this change:
Hugo is missing and has a directory, where files are generated, that should be ignored.
Links to documentation supporting these rule changes:
https://gohugo.io/tutorials/automated-deployments#setting-up-version-control
If this is a new template: