Mercurial on Windows Tip Global Ignore File

Written by Brett Veenstra

If you’re using TortoiseHg, (if you’re not, you should stop reading now to go install it), in your default installation you should put your Mercurial.ini file in your %userprofile% folder.

Make your [ui] section edits to point to a file (name is up to you):

ignore = %userprofile%\.hgignore

Finally, make sure you have an .hgignore compatible file. This is what I’m using right now:

syntax: glob