1
0
mirror of synced 2026-01-06 06:02:35 -05:00
Files
docs/data/reusables/rest-reference/gitignore/gitignore.md
2022-02-28 18:30:54 +00:00

9 lines
701 B
Markdown

When you create a new repository on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %} via the API, you can specify a [.gitignore template](/github/getting-started-with-github/ignoring-files) to apply to the repository upon creation. The .gitignore templates API lists and fetches templates from the {% data variables.product.product_name %} [.gitignore repository](https://github.com/github/gitignore).
### 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](/rest/overview/media-types)."