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 πŸ”₯


xoxo, GitHub CLI v2.102.0 β€” Oct 2026 πŸ’œ

πŸ“¦ where this page comes from