Wednesday, March 4, 2015

Create a .gitignore file on windows

As you know if you create a .gitignore file using windows explorer (or .htaccess or any other .something file) it will complain loudly.

The trick is to create a new file and call it :
.gitignore.

Notice the "." at the end. It is significant. Once you do that windows explorer will silently remove the trailing "." and you get exactly what you wanted ".gitignore"

No comments:

Post a Comment