1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Files
docs/content/rest/gitignore.md
Joe Clark 74a679dc51 Make product variables for Enterprise translation-friendly (#31628)
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Evan Bonsignori <ebonsignori@github.com>
2022-10-17 18:54:05 +00:00

1007 B

title, intro, versions, topics, miniTocMaxHeadingLevel, redirect_from
title intro versions topics miniTocMaxHeadingLevel redirect_from
Gitignore The Gitignore API fetches `.gitignore` templates that can be used to ignore files and directories.
fpt ghes ghae ghec
* * * *
API
3
/rest/reference/gitignore

About the Gitignore API

When you create a new repository on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.location.product_location %}{% endif %} via the API, you can specify a .gitignore template to apply to the repository upon creation. The .gitignore templates API lists and fetches templates from the {% data variables.product.product_name %} .gitignore repository.

Custom media types for gitignore

You can use this custom media type when getting a gitignore template.

application/vnd.github.VERSION.raw

For more information, see "Media types."