GH-REPO-GITIGNORE(1) GitHub CLI manual GH-REPO-GITIGNORE(1)

# [NAME](#NAME)

gh-repo-gitignore - List and view available repository gitignore templates

# [SYNOPSIS](#SYNOPSIS)

**gh repo gitignore &lt;command&gt; \[flags]**

# [AVAILABLE COMMANDS](#AVAILABLE_COMMANDS)

[**gh-repo-gitignore-list(1)**](#gh_repo_gitignore_list%281%29)

List available repository gitignore templates

[**gh-repo-gitignore-view(1)**](#gh_repo_gitignore_view%281%29)

View an available repository gitignore template

# [EXIT CODES](#EXIT_CODES)

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

# [SEE ALSO](#SEE_ALSO)

[**gh-repo(1)**](/man/os/gh/gh-repo.1)

Oct 2026

---

Document: gh-repo-gitignore(1) from gh 2.103.0-r0 (Chainguard OS)
Source: https://github.com/cli/cli
