Flash Tip - Generating a .gitignore file for .NET Projects
By Charlie Dalldorf on
This one I just discovered the other day. Up to this point, I always grabbed another .gitignore
file from a previous project. With this simple change and command, we do not need to do that anymore.
What You Need:
- Powershell or Terminal
- A .NET Solution
This one will be my shortest and fastest Medium Post ever. Set your directory in your terminal to your .NET solution folder location, and type in:
dotnet new gitignore
You should see your Terminal say this:
And your .NET Solution should have a new .gitignore
file with sensible defaults.
If you have any questions, comments, or suggestions, please feel free to drop a response to this article.
Until then, I'll see you next time.