“You must type a file name” error thrown, when I create a .gitignore file on Windows

后端 未结 5 2049
眼角桃花
眼角桃花 2021-01-30 08:13

When I try to do this, I get the following error:

Obviously, Windows Explorer doesn\'t allow me to create this type of file patterns. How can I overcome this pr

5条回答
  •  旧巷少年郎
    2021-01-30 08:25

    in cmd,just type

     echo. 2>.name_you_want
    

    or

    . 2>.name_you_want
    

    to create file.

    if creating a dir,just type

    mkdir .folder_name_you_want
    

提交回复
热议问题