gitignore ignore files within a folder that has wh

2019-01-23 10:45发布

问题:

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.