Git ignore implementation in C#

Issue

How can I properly implement the use of git ignore to not commit .json files to my repository?

I tried watching a youtube video for help, but after following his tips my json file is still being uploaded.

Solution

https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
Here is a general .gitignore file.
Use this in your main directory containing the solution, and it should work.

Answered By – M.Joubert

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published