When I try to do this, I get the following error:
Obviously, Windows Explorer doesn't allow me to create this type of file patterns. How can I overcome this problem?
I arrive a little late but will give you the trick!! ;-)
In the Explorer, call your file .gitignore. and it will remove the ending '.'
Or use a text editor...