1
0
mirror of synced 2025-12-26 14:02:45 -05:00
Files
docs/content/rest/reference/gitignore.md
Dev Prakash Sharma 5cee642450 Added Intros for REST API Pages (#8371)
Co-authored-by: Sarah Edwards <skedwards88@github.com>
2021-07-27 23:06:19 +00:00

914 B

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

When you create a new {% data variables.product.product_name %} repository 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."

{% include rest_operations_at_current_path %}