If you’re using Windows it will not let you create a file without a filename in Windows Explorer. It will give you the error “You must type a file name” if you try to rename a text file as .gitignore
You can get around this Windows Explorer error by appending a dot to the filename without extension: .gitignore.
will be automatically changed to .gitignore