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
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
・ http://gitignore.io/api/osx,linux,windows,c,c++
And if you want to download the template as .gitignore, then use the following command:
It's simple and effective, nice!
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
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++
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
Post a Comment