windows不允許.gitignore之類的文件,也不允許.ssh命名的文件夾名。會提示必須輸入文件名。
要解決這個問題我以前一直是通過bash使用linux命令創建的。最近發現了一個更簡便的方法與大家分享:
創建.gitignore文件輸入.gitignore.即可越過此限制,回車后文件名會修改為.gitignore。
參考:
https://winscp.net/eng/docs/guide_windows_openssh_server
- 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