Get-GitHubGitignoreTemplate
SYNOPSIS
Get a gitignore template
SYNTAX
__AllParameterSets
Get-GitHubGitignoreTemplate [-Name] <string> [-Accept <string>]
ALIASES
This cmdlet has the following aliases,
- Get-GHGitignoreTemplate
DESCRIPTION
The Get-GitHubGitignoreTemplate cmdlet invokes the GET method of the /gitignore/templates/{name} endpoint (Get a gitignore template)
Get the content of a gitignore template.
This endpoint supports the following custom media types. For more information, see “Media types (https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types).”
- ‘application/vnd.github.raw+json’: Returns the raw .gitignore contents.
Endpoint: GET /gitignore/templates/{name} API version: 2026-03-10
EXAMPLES
EXAMPLE 1
'
Invokes GET /gitignore/templates/{name}
PARAMETERS
-Accept
The Accept header (media type) of the request Default value: application/vnd.github+json
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Name
The name value of the request
Path parameter [ name ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Objects with properties named like the path parameters can be piped to this function
{{ Fill in the Description }}
System.String
{{ Fill in the Description }}
OUTPUTS
The response of the GitHub API (objects
{{ Fill in the Description }}
NOTES
OperationId: gitignore/get-template Category: gitignore / gitignore