문제

The same question has been asked before but the solutions don't work for me.

I want to instruct Mercurial to ignore a folder named .metadata, by adding it to the .hgignore file. Here is my .hgignore file:

glob:.hgignore
glob:.hgignore~
glob:.metadata/*

I have successfully tested that ignoring .hgignore and .hgignore~ works. If I remove the first two lines and run hg status, they show up. If I include the first two lines and run hg status, they disappear. But it doesn't work for the .metadata folder. The syntax above is the one reported in the solution referenced below. It doesn't work for me. I also tried glob:.metadata/.

A temporary workaround is not to use Mercurial on the workspace, where the .metadata files are. ;-)

Any suggestions welcome, thanks!

EDIT: SOLUTION And so it appears that this works:

glob:.metadata

it's also simpler and therefore prettier. Thanks to greut for pointing it out.

how to add a dot-directory to mercurials hgignore

도움이 되었습니까?

해결책

I've got this in mine:

syntax: glob
.metadata
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top