DEV Community

loading...

.gitattributes templates

jozefizso profile image Jozef Izso Originally published at izsak.net ・1 min read

gitattributes.io is a service for generating .gitattribute files from templates. The service is inspired by gitignore.io where you can quickly bootstrap your .gitignore files.

Choose templates on web interface, or use the very simple API to list template names and generate new .gitattribute file content.

To generate .gitattributes file for you web project, just call:

https://gitattributes.io/api/web
Enter fullscreen mode Exit fullscreen mode

Working on a C++ project in Visual Studio? Separate multiple template names with a comma:

https://gitattributes.io/api/c++,visualstudio
Enter fullscreen mode Exit fullscreen mode

The list of all template names is available at api/list endpoint:

https://gitattributes.io/api/list
Enter fullscreen mode Exit fullscreen mode

This service was made possible by the project from alexkaratarakis who created the original alexkaratarakis/gitattributes repository with .gitattributes templates. You can contribute to gitattributes.io project at github.com/gitattributes

Discussion (0)

Forem Open with the Forem app