windows 如何创建.gitignore 文件 / .ssh 文件夹?解决windows必须键入文件名提示


windows不允许.gitignore之类的文件,也不允许.ssh命名的文件夹名。会提示必须输入文件名。

要解决这个问题我以前一直是通过bash使用linux命令创建的。最近发现了一个更简便的方法与大家分享:

创建.gitignore文件输入.gitignore.即可越过此限制,回车后文件名会修改为.gitignore。

 

 

参考:

https://winscp.net/eng/docs/guide_windows_openssh_server

  1. Windows Explorer does not allow you to create a folder starting with a dot directly. As a workaround, use .ssh., the trailing dot will allow you to bypass the restriction, but will not be included in the name.Back

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM