Search code examples
gitgithubgitignore

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


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.


Solution

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