< Back

Get-GitIgnore

Mon Jan 13, 2020 8:31 pm

NAME Get-GitIgnore



SYNOPSIS

Fetches a gitignore file from gitignore.io for the given language.





SYNTAX

Get-GitIgnore [[-Language] <String>] [<CommonParameters>]





DESCRIPTION

Uses the gitignore.io API to download the contents of a gitignore file

which provides sensible defaults for the given language. Can be used to quickly

bootstrap a repository or add a gitignore file to an existing one.





PARAMETERS

-Language <String>

The programming language or tool name for which a gitignore file will be retrieved.



Required? false

Position? 1

Default value $GitTool.GitIgnore.Default

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-GitIgnore powershell | Set-Content .gitignore















RELATED LINKS

https://gitignore.io