如果直接新建一个文本文件,然后修改其文件名为.gitmodules,会提示错误:you must type a filename。 解决办法: 打开文本文件后,然后点击另存为,然后修改"保存类型"为 all Files。 原文: http://stackoverflow.com/questions/5004633/how-to-manually-create-a-file-with-a-dot-prefix-in-windows-for-example-htacce