I have a folder with lots of .cs files. Some of these files (for some reason) are tracked as binary and the git diff command doesn't work normally with them.
I tried re-saving all these files to UTF-8 encoding, but it didn't help. I tried changing the directory, directory name, filename and file extension and all of these helped.
I also tried modifying the .gitattributes file to treat *.cs files as non-binary but it didn't help me:
*.cs diff=csharp
I need a way to set all these files as non-binary w/o changing their path or name. Is there such a way?

*.cs diffshould enable normal diffs even if Git thinks the files are binary. What do you see when you try to diff?echo '*.cs diff' >>.gitattributes. Do you have anything else in your.gitattributesfile?