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.
如何为 Git 存储库创建 .editorconfig 文件,以便 Github.com 可以识别某些扩展?特别希望将 Dockerfile.x 中称为 Dockerfile 的文件识别为 Dockerfile。
类似的东西.gitattributes有用吗?
.gitattributes
这是一个.gitattributes针对您的用例量身定制的示例:
# Reclassifies `.bedrock` files as Dockerfiles: *.bedrock linguist-language=Dockerfile
Git 属性文档