Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

github new repo .gitignore CSharp missing

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:

enter image description here

Any idea?

like image 741
David Hemsey Avatar asked Sep 26 '15 07:09

David Hemsey


People also ask

Why Git ignore file is not working?

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).

Why is Git ignoring my Gitignore?

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.

Where do I put the .gitignore file?

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.


1 Answers

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.

like image 174
VonC Avatar answered Oct 06 '22 23:10

VonC