I\'m trying to create a new git repository from existing folder. I\'ve created a .gitignore file in the root of the folder. But if I say
.gitignore
git add
You could have created a UTF-8 encoded text file. Try saving it as ANSI encoded. In git bash, you can verify by using vi -b.