1
0
mirror of synced 2026-01-03 06:04:16 -05:00
Files
docs/content/rest/gitignore/gitignore.md
Sarah Edwards 29db669cc9 Make all REST categories have subcategories (#38559)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2023-06-27 16:22:19 +00:00

1007 B

title, intro, versions, topics, redirect_from, autogenerated
title intro versions topics redirect_from autogenerated
Gitignore Use the REST API to get `.gitignore` templates that can be used to ignore files and directories.
fpt ghae ghec ghes
* * * *
API
/rest/reference/gitignore
rest

About gitignore

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. You can use the REST API to get .gitignore templates from the {% data variables.product.product_name %} .gitignore repository.

You can use the application/vnd.github.raw custom media type when getting a gitignore template. For more information, see "AUTOTITLE."