1
0
mirror of synced 2026-01-07 00:01:39 -05:00
Files
docs/content/rest/reference/gitignore.md
Jason Etcovitch caaee7a124 Update all files to use {% data %} (#15253)
* Add back changes from prior to purge

* Manually fix some invalid Liquid

* Updoot render-content

* Improve test messages to show correct output

* Run el scripto

* Pass the remaining test
2020-09-29 16:01:04 -04:00

21 lines
757 B
Markdown

---
title: Gitignore
redirect_from:
- /v3/gitignore
versions:
free-pro-team: '*'
enterprise-server: '*'
---
When you create a new {% data variables.product.product_name %} repository via the API, you can specify a [.gitignore template](/github/using-git/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)."
{% include rest_operations_at_current_path %}