Get a gitignore template
GET
/gitignore/templates/{name}
Get the content of a gitignore template.
This endpoint supports the following custom media types. For more information, see “Media types.”
application/vnd.github.raw+json: Returns the raw .gitignore contents.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” name
required
string
Responses
Section titled “ Responses ”Response
Media type application/json
Gitignore Template
Gitignore Template
object
name
required
string
source
required
string
Examples
Example default
{ "name": "C", "source": "# Object files\n*.o\n\n# Libraries\n*.lib\n*.a\n\n# Shared objects (inc. Windows DLLs)\n*.dll\n*.so\n*.so.*\n*.dylib\n\n# Executables\n*.exe\n*.out\n*.app\n"}Not modified