I have a C# MVC .Net Core application I'm building, the connection string is in a file called appsettings.json
so what I want to do is simply exclude this from my git repository. I have added the following line to the git ignore file:
appsettings.json
I have also tried:
**/appsettings.json
But neither seem to work, the change I've made to the appsettings.json
file still appears, am I missing something fundamental here?