您的位置:首页 > 其它

无法创建.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
ren gitignore.txt .gitignore
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐