gitignore ignore files within a folder that has whitespace in the middle

China☆狼群 提交于 2019-11-27 13:22:55

问题


I have a folder that have a space in the middle, but have a webconfig file inside it. I want git to ignore the webconfig file but somehow it's not ignoring it because of the space in the folder. Anybody know how to work around this?

My FolderName/Web.config

I tried to insert the %20 in the middle but that did not help.

Thank you for your help.


回答1:


Try My\ FolderName/Web.config or "My FolderName/Web.config"




回答2:


I'm guessing you probably have to use "My FolderName"/Web.config instead.



来源:https://stackoverflow.com/questions/10213653/gitignore-ignore-files-within-a-folder-that-has-whitespace-in-the-middle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!