You need a .gitignore template? Try gitignore.io, It Rocks!

gitignore.io is hosting a web API for generating a .gitignore template for certain OSs, IDEs or programming languages. And honestly, this is really helpful.


If you want a .gitignore template for several OS, IDE and programming language targets, what you need to do is to provide a CSV of these target IDs to the web api. Here, the following URL provides a comprehensive ID list of supported targets:

・ http://gitignore.io/api/list

Error: Embedded data could not be displayed.

For example, a .gitignore template for Mac OS X, Linux, Windows and C/C++ can be retrieved from the following URL (just putting target ids with delimiting commas after api/):

・ http://gitignore.io/api/osx,linux,windows,c,c++

Error: Embedded data could not be displayed.

And if you want to download the template as .gitignore, then use the following command:
curl http://gitignore.io/api/osx,linux,windows,c,c++ -o .gitignore

It's simple and effective, nice!

Comments

Popular posts from this blog

Hardcoding Data Like Images and Sounds into HTML or CSS

Make It Work: Global .gitattributes

LaTeX in Blogger with Google Chart API