Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在按照本节的建议将该public/文件夹置于版本控制之下。每次我构建网站时,Hugo 似乎都会自动生成一个 .gitignore 文件。默认的 .gitignore 会忽略除自身之外的所有内容。现在,在我运行之后build_site(),我需要手动覆盖默认的 .gitignore 以显示更改。
public/
build_site()
有没有可以关闭.gitignore覆盖的选项?