문제

i am using Mercurial for version controlling. I am trying to ignore zip files in the repository, my hgignore file is in the root directory of project

i got the codes below from http://www.selenic.com/mercurial/hg.1.html#patterns.

syntax: glob
**.zip

syntax: regexp
re:.*\.zip$   

But these doesnt work for me.

i also tried

hg addremove

and

hg forget -I '*'

but it didnt help. Can you tell me how can properly ignore zip files from the repository? Thanks for help.

EDIT

My problem was the zip files were already added to repository. I first forgot them and committed. Now it ignores

도움이 되었습니까?

해결책

Simply writing *.zip inside .hgignore will do this. The patterns inside .hgignore are not rooted, so *.zip would match a zip archive no matter where it appears.

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