Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PowerShell v3 script for gitignore.io.
#For PowerShell v3
Function gitignore {
Param(
[Parameter(Mandatory=$true)]
[string[]]$list
)
$params = $list -join ","
invoke-WebRequest -Uri "http://gitignore.io/api/$params" | select -expandproperty content | out-file -FilePath $(join-path -path $pwd -ChildPath ".gitignore") -Encoding ascii
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment