Example Visual Studio .hgignore file
In SVN I could add folders and directories to the ingnore list. I would use this feature to ignore all the dll and object file created when building a project.
How do I accomplish the same thing with Kiln/ Tortoisehg
I looked into creating a .hgignore file but Windows 7 would not let me.
I looked into adding entires in the 'Auto Exclude List' in the Commit tab for my repository settings. I tried
obj and Web\obj
Any ideas on what I am doing wrong or how to accomplish my goal?
closed as exact duplicate by adambox ♦♦ Mar 19 2012 at 20:08
Unfortunately, Windows 7's usually helpful file renaming behavior causes problems here. The easiest way to create a
.hgignore file in Windows 7:
notepad .hgignore Notepad.exe opens and asks if you want to create the file. Say yes.
Add the following lines to it:
In the root of your Mercurial repository, make a file called
.hgignore with the following:
or, if the folders are in a folder called
Web in the root of the repository, which it looks like they might be, it would be
Windows 7 should let you create a
.hgignore file; I have a pile of them at work. Can you provide more details on what you mean?
you open a text editor (notepad,
notepad2 or notepad++ will do fine), create the ignore list as explained in other answer(s) and save them as ".hgignore". the Windows Explorer doesn't allow you to rename
New Text File.txt to
.hgignore, but you can do it this way.
That works for all dll's in folder and subfolders.
Question, I want to exclude all my /bin/ folders, but these /bin/ folders exists in a whole heap of directories.. Do I have to include all the paths in my ignore file like this?
Or can I do something to say exclude all /bin/ folders in one line...
You can use :
with regexp syntax
It's case sensitive, so your Silverlight project's Bin and Obj directories will show up. Add:
to your .hgignore file to exclude these too.