GH-REPO-GITIGNORE-VIEW(1)
π NAME π
gh-repo-gitignore-view β view an available repository gitignore template. Straight from the GitHub CLI manual, bestie β¨
β¨ SYNOPSIS β¨
gh repo gitignore view <template> [flags]
π¦ DESCRIPTION π¦
Okay so this command is literally for viewing an available repository .gitignore template. Thatβs the whole vibe. π
<template> is a case-sensitive .gitignore template name. So yes, bestie, case matters β do not come in here guessing with the wrong capitalization, no cap.
For a list of available templates, run gh repo gitignore list. Iconic little helper behavior, fr fr. πΈ
π 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.
π EXAMPLE π
# View the Go gitignore template
$ gh repo gitignore view Go
# View the Python gitignore template
$ gh repo gitignore view Python
# Create a new .gitignore file using the Go template
$ gh repo gitignore view Go > .gitignore
# Create a new .gitignore file using the Python template
$ gh repo gitignore view Python > .gitignore
π₯ SEE ALSO π₯
gh-repo-gitignore(1)π«Ά
xoxo, GitHub CLI v2.102.0 β Oct 2026 π
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms