Followers

How to create a file with a . dot prefix in Windows Explorer

If you right click in Windows and try to make a new text file with a . period/dot in front of it:
image
Name the file...something like .gitignore, for example.
image
You'll get the "You must type a file name" error.
image
But, rather than typing .gitignore, if you include an ending dot also, like
.gitignore.
Then it works fine.
image
Thanks, Mads, for the tip!
NOTE: We're assuming that you have "File name extensions" turned on, because if you don't, you're likely not a programmer. ;)




image

No comments:

Post a Comment