这是Windows 资源管理器的一个“功能”。 尝试从命令行(或从您编写的批处理/程序)创建文件,它应该可以正常工作。 从 dos 提示符尝试以下操作:
echo Hello there! > .hgignore
That's a "feature" of Windows Explorer. Try to create your files from a command line (or from a batch/program you wrote) and it should work fine. Try this from a dos prompt:
发布评论
评论(2)
这是Windows 资源管理器的一个“功能”。 尝试从命令行(或从您编写的批处理/程序)创建文件,它应该可以正常工作。 从 dos 提示符尝试以下操作:
That's a "feature" of Windows Explorer. Try to create your files from a command line (or from a batch/program you wrote) and it should work fine. Try this from a dos prompt:
顺便说一句,Raymond Chen 不久前发表了一篇关于此主题的博客文章:
为什么Explorer 不允许您创建名称以点开头的文件吗?(带注释的 archive.org 链接:https://web.archive.org/web/20100305064616/http://blogs.msdn。 com/oldnewthing/archive/2008/04/14/8389268.aspx)
他在其中提到
By the way Raymond Chen had a blog post about this topic a while back:
Why doesn't Explorer let you create a file whose name begins with a dot? (archive.org link with comments: https://web.archive.org/web/20100305064616/http://blogs.msdn.com/oldnewthing/archive/2008/04/14/8389268.aspx)
In which he mentions