无法创建.gitignore文件,提示必须输入文件名称
2017-12-14 11:04
363 查看
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
To get around this I used the following steps
Create the text file gitignore.txt
Open it in a text editor and add your rules, then save and close
Hold SHIFT, right click the folder you're in, then select Open command window here
Then rename the file in the command line, with
To get around this I used the following steps
Create the text file gitignore.txt
Open it in a text editor and add your rules, then save and close
Hold SHIFT, right click the folder you're in, then select Open command window here
Then rename the file in the command line, with
ren gitignore.txt .gitignore
相关文章推荐
- 安装SQL Server 2000时出现以下错误提示:“以前的某个程序安装已在安装计算机创建挂起的文件操作,运行安装程序之前必须重新启动计算机” 说明:如果重启计算机无法解决问题,可能有以下两个原因
- windows创建以‘.’开头的文件提示必须键入名称的解决办法
- 在用虚拟机装linux5的时候出现了“出现错误-未找到要在其中创建新文件系统的有效设备”的提示之后就无法安
- outlook打开附件提示:无法创建文件的解决方法
- 创建.gitignore文件,忽略git不必要提交的文件
- 从键盘上输入文件的内容和要保存的文件名称,然后根据输入的名称创建文件,并将内容保存到文件中
- hdfs nfs 报错:cp: 无法创建普通文件: 输入/输出错误
- VS 2010无法创建项目提示写入项目文件时出错 没有注册类别
- windows平台下创建.gitignore文件的方法
- gitignore无法忽略文件,忽略文件失败
- .gitignore 无法忽略已提交的目录或文件
- git 创建 .gitignore 文件过滤规则及注意事项
- 解决为什么Git中有时候使用.gitignore也无法忽略一些文件
- git - Windows下创建 .gitignore 文件
- 安装oralce 11g后创建监听失败,缺失监听配置文件,也无法生成,提示TNS-04415
- .gitignore 无法忽略文件的解决方法
- 关于gitignore文件的创建与使用
- Git 提交失败提示无写入权限与 Linux 下创建文件的默认权限
- 关于gitignore文件的创建与使用
- outlook附件中的excel时,提示:无法创建文件