Quickly get a .gitignore file

I posted a while back that like many people, I often use https://gitignore.io to create gitignore files. Previously I showed how to use Invoke-WebRequest to do this quickly. Quick as that was, I like it quicker! So I added the following powershell command to my profile which makes things even easier, and takes care of a few niggles such as correct UTF8 encoding without a BOM marker.

Now I can just do something like: Get-GitIgnore VisualStudioCode

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>