$ curl https://gitignore.io/api/direnv
# Created by https://www.gitignore.io/api/direnv
# Edit at https://www.gitignore.io/?templates=direnv
#!! ERROR: direnv is undefined. Use list command to see defined gitignore types !!#
# End of https://www.gitignore.io/api/direnv
gitignore.io 的 gitignore 模板集合维护在一个独立的仓库中:github.com/toptal/gitignore。它们是github/gitignore的扩展,包含一些额外的类型.patch,称为.stack`<type>` 和 `<type>`。当我遇到上述错误时,我想知道是否可以不用 Web 服务直接使用该仓库生成 gitignore 文件。结果,我陷入了深深的困惑,最终……
gig是一个命令行工具,可以帮助您.gitignore为项目创建有用的文件。它借鉴了gitignore.io的设计,并利用了该 Web 服务提供的丰富模板。.gitignore这意味着它gig支持 gitignore.io 识别的四种文件类型。生成的内容应该与gitignore.iogig生成的内容一致,但堆栈顺序除外,gitignore.io似乎并不保证堆栈顺序的一致性。