spotube/gh_2.76.2_macOS_amd64/share/man/man1/gh-repo-gitignore-view.1

57 lines
1.1 KiB
Groff

.nh
.TH "GH-REPO-GITIGNORE-VIEW" "1" "Jul 2025" "GitHub CLI 2.76.2" "GitHub CLI manual"
.SH NAME
gh-repo-gitignore-view - View an available repository gitignore template
.SH SYNOPSIS
\fBgh repo gitignore view <template> [flags]\fR
.SH DESCRIPTION
View an available repository \fB\&.gitignore\fR template.
.PP
\fB<template>\fR is a case-sensitive \fB\&.gitignore\fR template name.
.PP
For a list of available templates, run \fBgh repo gitignore list\fR\&.
.SH EXIT CODES
0: Successful execution
.PP
1: Error
.PP
2: Command canceled
.PP
4: Authentication required
.PP
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.
.SH EXAMPLE
.EX
# 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
.EE
.SH SEE ALSO
\fBgh-repo-gitignore(1)\fR