Tag Archives: Windows

Git ignores new created .gitignore

Yesterday I ran the following commands on my Windows machine to create a new .gitignore:

echo .* >> .gitignore
echo bin* >> .gitignore

The created files was ignored by git. After some investigation, I have found, that those commands added spaces at the end of any line.
Removed them and everything worked as expected.

Tagged , , , ,