---
title: "Get all gitignore templates"
method: GET
path: "/gitignore/templates"
tags: ["gitignore"]
---

# Get all gitignore templates

`GET /gitignore/templates`

List all templates available to pass as an option when [creating a repository](https://docs.github.com/enterprise-server@3.7/rest/repos/repos#create-a-repository-for-the-authenticated-user).

## Response `200`

Response

- string[]

## Other responses

- `304` — Not modified

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-6.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-6/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-6/versions/15db3fa0759b/schema)
