AbdulElahGwaith's picture
Upload folder using huggingface_hub
88df9e4 verified
---
title: REST API endpoints for gitignore
shortTitle: Gitignore
allowTitleToDifferFromFilename: true
intro: >-
Use the REST API to get `.gitignore` templates that can be used to ignore
files and directories.
versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖
fpt: '*'
ghec: '*'
ghes: '*'
topics:
- API
redirect_from:
- /rest/reference/gitignore
autogenerated: rest
---
## About gitignore
When you create a new repository on {% data variables.product.github %} via the API, you can specify a [.gitignore template](/get-started/git-basics/ignoring-files) to apply to the repository upon creation. You can use the REST API to get .gitignore templates from the {% data variables.product.github %} [.gitignore repository](https://github.com/github/gitignore).
<!-- Content after this section is automatically generated -->