.hgignore itself is version controlled. I’ve added some object dirs i want to ignore but i do not want to commit these changes to .hgignore. What do i do?
.hgignore itself is version controlled. I’ve added some object dirs i want to ignore
Share
Add the following to the repo’s
.hg/hgrc:and create a new file
.hg/hgignorebeside it. This new file will be untracked, but work the same as the versioned.hgignorefile for this specific working copy. (The/path/to/repobit is unfortunate but necessary to make it work when invokinghgfrom within a subdir of the repo.)Source: Mercurial Tips and Tricks