Mercurial (Hg) and Git Global Ignore Files for Windows

git, mercurial comments

So yet another post that is meant mainly for myself, but maybe someone else will find in it as well.

The ignore pattern I use for Visual Studio projects is the same for both Mercurial and Git:


The only difference is how to set global ignore rules for each of them. I found these two great tutorials for this:

UPDATE (16/11/2010): After using Hg for a while with my ASP.NET MVC projects I’ve added a few things to the ignore list.