I am trying to create a new repo for my project (C#), but I can't find the CSharp language in the list of languages in .gitignore list as shown in the picture below:
Any idea?
Make sure your . gitignore file uses ANSI or UTF-8 encoding. If it uses something else like Unicode BOM , it's possible that Git can't read the file. @ADTC this was exactly the problem on my machine (Windows).
Some times, even if you haven't added some files to the repository, git seems to monitor them even after you add them to the . gitignore file. This is a caching issue that can occur and to fix it, you need to clear your cache.
gitignore file anywhere in the working directory, i.e in any folder where your code prevails. Having said that, the best practice would be to place the . gitignore file in the root directory.
As commented in issue 1514
We did this a while ago for VisualStudio - which was a combination of CSharp and VisualBasic languages -
(It was in Dec. 2012: PR 492)
So use the VisualStudio one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With