How can I make mercurial ignore a specific folder with a space in its name

There are many examples of how to ignore folders in Mercurial, but I have problems ignoring a folder with a space in its name. I want to ignore the folder namedTranslation Files

I tried to wrap quotes around it, but did not succeed. Does anyone know how to do this?

+3
source share
2 answers

If something I am not reading from your question, a simple approach works best:

glob:Translation Files/

This works for me, I added this directory, added the file, confirmed that commit / addremove, etc. I wanted to add it, and then redid the operation, but added an ignore mask, and the file was ignored.

+1
source

.hgignore:

syntax

: glob
Tranlation/

+1

Source: https://habr.com/ru/post/1781815/


All Articles