My .gitignore file seems to be being ignored by Git - could the .gitignore file be corrupt? Which file format, locale or culture does Git expect?>
.gitignore
I've created .gitignore using echo "..." > .gitignore in PowerShell in Windows, because it does not let me to create it in Windows Explorer.
echo "..." > .gitignore
The problem in my case was the encoding of the created file, and the problem was solved after I changed it to ANSI.