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