I would like visual studio to ignore "appsettings.json" from being uploaded to github repository.
I have tried putting the file name in .gitignore but visual studio 2017 still record it as a change and push it to the repository
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
appsettings.json
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
I expect the "appsettings.json" to be ignored when pushing the changes to the repository.